Class BeforeDispatchEvent
Event class for the ICanBoogie\HTTP\RequestDispatcher::dispatch:before
event.
Event hooks may use this event to provide a response to the request before the domain dispatchers are invoked. The event is usually used by event hooks to redirect requests or provide cached responses.
- ICanBoogie\Event
- ┗ ICanBoogie\HTTP\RequestDispatcher\BeforeDispatchEvent
Methods summary
public
__construct( ICanBoogie\HTTP\RequestDispatcher
$target
, ICanBoogie\HTTP\Request
$request
, ICanBoogie\HTTP\Response
& $response
= null )
The event is constructed with the type dispatch:before
.