kuoto/psr15-bridge

提供PSR-15中间件的双重遍历装饰器。

dev-master / 1.0.x-dev 2020-06-29 04:03 UTC

This package is auto-updated.

Last update: 2024-08-29 05:30:58 UTC


README

Build Status Latest Stable Version License

此包提供了一个PSR-15中间件,用于装饰可调用的(双重遍历)中间件。

安装

推荐通过composer安装此库

composer require kuyoto/psr15-bridge

使用

将现有的可调用(双重遍历)PSR-7中间件装饰为PSR-15中间件

use Kuyoto\Psr15\Bridge\DoublePassMiddlewareDecorator;

$decorator = new DoublePassMiddlewareDecorator($callableMiddleware, $response);

您可以将生成的中间件对象添加到PSR-15堆栈中。

测试

composer test

许可证

该包是开源软件,采用MIT许可证