Class BeforeDispatchEvent
Event class for the ICanBoogie\Routing\RouteDispatcher::dispatch:before
event.
Third parties may use this event to provide a response to the request before the route is mapped. The event is usually used by third parties to redirect requests or provide cached responses.
- ICanBoogie\Event
- ICanBoogie\Routing\RouteDispatcher\BeforeDispatchEvent
Methods summary
protected
|
|
protected
ICanBoogie\HTTP\Request
|
|
protected
ICanBoogie\HTTP\Response|null
|
|
protected
|
|
public
|
#
__construct(
The event is constructed with the type self::TYPE. |
Properties summary
Magic properties
public
ICanBoogie\HTTP\Response
|
$response
|
public read-only
|
$route
|
public read-only
ICanBoogie\HTTP\Request
|
$request
|