kaz29 / cakephp-psr15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSR-15 Middleware support for CakePHP

Installation

Install the latest version with

$ composer require kaz29/cakephp-psr15:dev-master

Basic Usage

Application.php

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()))
....

Author

Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29

License

Phai is licensed under the MIT License - see the LICENSE file for details

About

License:MIT License


Languages

Language:PHP 100.0%