New Hook Suggestion #1717

Closed
adamkelso opened this Issue Aug 15, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@adamkelso

I think it could be very useful to add a new hook between the point when the get_instance() function is defined and when the local application controller is detected. The reason being that it would be handy to be able to complete some logic, such as authentication and ACL checks, before a controller is chosen rather than redirecting after instantiation. I know this can be done with one of the earlier hooks, but there's not currently any way to do logic at that point using the framework libraries.

@narfbg

This comment has been minimized.

Show comment Hide comment
@narfbg

narfbg Nov 3, 2012

Contributor

Not many real use cases for this (if any, except yours).

pre_system and pre_controller should be enough and there's no problem in re-setting the class and metod to be called via the second one.

Contributor

narfbg commented Nov 3, 2012

Not many real use cases for this (if any, except yours).

pre_system and pre_controller should be enough and there's no problem in re-setting the class and metod to be called via the second one.

@narfbg narfbg closed this Nov 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment