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

Added status codes #93

Merged
merged 2 commits into from Nov 13, 2012
Merged

Added status codes #93

merged 2 commits into from Nov 13, 2012

Conversation

baldurrensch
Copy link
Contributor

This PR is extracted from #71. It now only contains the status code => Reason map.

After the long discussion I have renamed it from responseCodes to statusCodes as they are referred to in the RFC.

Please let me know, if you want me to add more unit tests, or adjust the templates.

@gordalina
Copy link
Contributor

👍 good job

/**
* @param array $codes
*/
public function addStatusCodes($codes)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe: addStatusCode

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See how it's done with requirements for instance.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, if it's not used yet, don't expose this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Function removed

willdurand added a commit that referenced this pull request Nov 13, 2012
@willdurand willdurand merged commit 74f0778 into nelmio:master Nov 13, 2012
@willdurand
Copy link
Collaborator

Thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants