Skip to content
This repository

New Hook Suggestion #1717

Closed
adamkelso opened this Issue · 1 comment

2 participants

Adam Kelso Andrey Andreev
Adam Kelso

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.

Andrey Andreev
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.