kaz29/cakephp-psr15

CakePHP 的 PSR-15 中间件支持

安装: 866

依赖关系: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:cakephp-plugin

dev-master 2019-05-05 07:18 UTC

This package is auto-updated.

Last update: 2024-09-05 19:04:36 UTC


README

安装

使用以下命令安装最新版本

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

基本用法

Application.php

按照以下示例添加您的 PSR-15 中间件。

...
        $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 使用 MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件