Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayloadFactory should have more creation methods. #16

Open
nbish11 opened this issue Sep 10, 2019 · 0 comments
Open

PayloadFactory should have more creation methods. #16

nbish11 opened this issue Sep 10, 2019 · 0 comments

Comments

@nbish11
Copy link

nbish11 commented Sep 10, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant