moln/expressive-callable-middleware-compat

此包已被 弃用 并不再维护。作者建议使用 无替代品且无推荐 的包。

与 Expressive V3 的可调用中间件兼容

0.1.0 2018-03-16 06:19 UTC

This package is not auto-updated.

Last update: 2021-12-24 09:50:43 UTC


README

Build Status Coverage Status Latest Stable Version

与 Expressive V3 的可调用中间件兼容

安装

composer require moln/expressive-callable-middleware-compat

用法

expressive-skeleton/config/config.php 中添加 Moln\ExpressiveCallableCompat\ConfigProvider::class

class TestMiddleware {
    public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) {
         return $next($request, $response);
    }
}

$app->pipe(TestMiddleware::class);