Skip to content

Add hooks into the controllers #700

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

Closed
stof opened this issue Jul 7, 2012 · 2 comments
Closed

Add hooks into the controllers #700

stof opened this issue Jul 7, 2012 · 2 comments

Comments

@stof
Copy link
Member

stof commented Jul 7, 2012

The controllers should dispatch events in several places of their workflow to provide useful hooks. This would allow people to customize things without copy-pasting the whole controller action for a little change.
the handling of the confirmation email when registering should then be moved to a listener instead of doing a if in the controller to handle both cases (enabling the confirmation would simply mean registering the listener in this case).
These events should also make #552 possible.

I will work on it soon. If you have an idea about a place where a hook could be useful, please leave a comment.

@stof stof mentioned this issue Jul 7, 2012
@stof
Copy link
Member Author

stof commented Jul 7, 2012

#387 may also be simplified using an event. This should be investigated.

@stof
Copy link
Member Author

stof commented Dec 27, 2012

Done in #867

@stof stof closed this as completed Dec 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant