Skip to content

PayloadFactory should have more creation methods. #16

@nbish11

Description

@nbish11

Shouldn't the Aura\Payload\PayloadFactory have more methods; especially when creating payloads of different statuses.

E.g.

$foundPayload = $this->payloadFactory->found()->setOutput(...);

$notFoundPayload = $this->payloadFactory->notFound()->setMessages(['Resource is missing.']);

I can write the PR if you do want this functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions