Compatible with callable middleware in Expressive V3
composer require moln/expressive-callable-middleware-compat
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);