PSR-15 Middleware support for CakePHP
Install the latest version with
$ composer require kaz29/cakephp-psr15:dev-master
Add your PSR-15 middleware referring to the following sample.
... $middlewareQueue // Catch any exceptions in the lower layers, // and make an error page/response ->add(new ErrorHandlerMiddleware(null, Configure::read('Error'))) ->add(new PsrMiddleware(new YourPsr15Middleware())) ....
Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29
Phai is licensed under the MIT License - see the LICENSE file for details