flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.61k stars 408 forks source link

Plugin for request and response object #262

Closed Stephan123 closed 8 years ago

Stephan123 commented 8 years ago

Hello,

i look for the best way to insert plugins to the flight framework. I need plugins they works befor the controller work and after the controller has worked.

How can help ?

Your sincerly

Stephan

jimlei commented 8 years ago

You can use filtering to inject middleware into flight

Flight allows you to filter methods before and after they are called. There are no predefined hooks you need to memorize. You can filter any of the default framework methods as well as any custom methods that you’ve mapped.

http://flightphp.com/learn#filtering