moln/expressive-callable-middleware-compat

This package is abandoned and no longer maintained. The author suggests using the No replacement and no recommend. package instead.

Compatible with callable middleware in 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

Compatible with callable middleware in Expressive V3

Install

composer require moln/expressive-callable-middleware-compat

Usage

Add Moln\ExpressiveCallableCompat\ConfigProvider::class in expressive-skeleton/config/config.php

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

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