MiddlewareHandler Class
Aurora\Middleware Namespace
Interfaces
- I RequestHandlerInterface
Properties
middleware
MiddlewareInterface instance
private $middleware: \MiddlewareInterface
handler
RequestHandlerInterface instance
private $handler: \RequestHandlerInterface
Constructor
__construct
Constructor
Parameters
Psr\Http\Server\MiddlewareInterface$middleware— MiddlewareInterface instancePsr\Http\Server\RequestHandlerInterface$handler— RequestHandlerInterface instance
Signature
public function __construct(Psr\Http\Server\MiddlewareInterface $middleware, Psr\Http\Server\RequestHandlerInterface $handler)
Methods
__construct
Constructor
Parameters
-
Psr\Http\Server\MiddlewareInterface$middleware— MiddlewareInterface instance -
Psr\Http\Server\RequestHandlerInterface$handler— RequestHandlerInterface instance
Signature
public function __construct(Psr\Http\Server\MiddlewareInterface $middleware, Psr\Http\Server\RequestHandlerInterface $handler)
handle
Handle request
Parameters
-
Psr\Http\Message\ServerRequestInterface$request— Request instance
Return Value
\ResponseInterface
Signature
public function handle(Psr\Http\Message\ServerRequestInterface $request): Psr\Http\Message\ResponseInterface