Closed undercloud closed 7 years ago
I'm not sure what do you mean with "Custom middleware". Of course, you can create any middleware, there's no a MiddlewareBase
, just need to create a class with the signature:
class MiddlewareMy
{
public function __invoke(RequestInterface $request, ResponseInterface $response, callable $next)
{
}
}
This project is just a collection of middleware classes with this signature.
ok)
Can I create my own middleware like this?