PHP-DI / Slim-Bridge

PHP-DI integration with the Slim framework
http://php-di.org/doc/frameworks/slim.html
MIT License
176 stars 38 forks source link

Missing pre and post action call #77

Closed jnessier closed 1 year ago

jnessier commented 1 year ago

I am missing pre and post actions for the controllers. E.g for authentication checks before the action got called. Running pre actions in the constructor of the controller mostly won't work because the request object is not accessible/created then.

Are you interested in a pull request?

mnapoli commented 1 year ago

Is that an official feature in Slim? I don't want to add a custom feature in the bridge, but I'm ok merging it if it's an official feature that we are missing.

jnessier commented 1 year ago

No, it is not a feature in Slim. But I'm missing pre and post action calls in the controller.

Feel free to cancel the pull request.

mnapoli commented 1 year ago

Got it, thanks for the response.