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

Unexpected if clause in ResourceController #113

Open
Wilt opened this issue Oct 9, 2013 · 0 comments
Open

Unexpected if clause in ResourceController #113

Wilt opened this issue Oct 9, 2013 · 0 comments

Comments

@Wilt
Copy link
Contributor

Wilt commented Oct 9, 2013

In line https://github.com/phly/PhlyRestfully/blob/master/src/PhlyRestfully/ResourceController.php#L606 there is an unexpected if clause checking $id and isMethodAllowedForCollection. PUT methods with an $id are mapped to this update method and it is never used for updating collections...
All PUT methods without $id will map to replaceList according to https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Controller/AbstractRestfulController.php#L417
I don't understand the reason for this if clause.

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