Final Class Yiisoft\Middleware\Dispatcher\Event\BeforeMiddleware
| Inheritance | Yiisoft\ |
|---|
BeforeMiddleware event is raised before executing a middleware.
Public Methods
Method Details
| public mixed __construct ( \ | ||
| $middleware | \ |
Middleware to be executed. |
| $request | \ |
Request to be passed to the middleware. |
public function __construct(
private readonly MiddlewareInterface $middleware,
private readonly ServerRequestInterface $request,
) {}
| public \ | ||
| return | \ |
Middleware to be executed. |
|---|---|---|
public function getMiddleware(): MiddlewareInterface
{
return $this->middleware;
}
| public \ | ||
| return | \ |
Request to be passed to the middleware. |
|---|---|---|
public function getRequest(): ServerRequestInterface
{
return $this->request;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.