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

Allow to set controller behaviors per controller #126

Merged
merged 7 commits into from
Feb 21, 2014

Conversation

bakura10
Copy link
Member

Adresses #125

ping @danizord @Ocramius

As said, this PR removes completely the controller behavior options (as a consequence, I also removed for now the options that allowed to preserve keys for error messages, as I'm not satisfied with the ControllerBehaviour naming anymore, as most controller behaviors were moved inside the controller).

The big +1 is that it now allows to set those behaviors by controller, which offers a big boost in flexibility. However, I need now to type hint controller in method handlers for AbstractRestfulController from ZfrRest. I'm not sure this is really a problem, as I can't see someone wanting to use ZfrRest method handlers without using the ZfrRest controller.

Tests were not updated yet, I'm waiting for your review guys :)

@danizord
Copy link
Contributor

👍

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling aeccace on controller-behaviours into 8d6a918 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 419cfd4 on controller-behaviours into 8d6a918 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b380110 on controller-behaviours into 8d6a918 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b380110 on controller-behaviours into 8d6a918 on master.

bakura10 added a commit that referenced this pull request Feb 21, 2014
Allow to set controller behaviors per controller
@bakura10 bakura10 merged commit 984a0bf into master Feb 21, 2014
@bakura10 bakura10 deleted the controller-behaviours branch February 21, 2014 09:16
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