ICanBoogie
  • Documentation
  • API Reference
  • Operation 2.2.x
Namespaces
  • ICanBoogie
    • Operation
      • OperationDispatcher
Classes
  • BeforeDispatchEvent
  • DispatchEvent

Class BeforeDispatchEvent

Event class for the ICanBoogie\Operation\OperationDispatcher::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\Operation\OperationDispatcher\BeforeDispatchEvent
Namespace: ICanBoogie\Operation\OperationDispatcher
Located at OperationDispatcher/BeforeDispatchEvent.php

Methods summary

public __construct( ICanBoogie\Operation\OperationDispatcher $target, ICanBoogie\Operation $operation, ICanBoogie\HTTP\Request $request, ICanBoogie\HTTP\Response|null & $response )

The event is constructed with the type dispatch:before.

The event is constructed with the type dispatch:before.

Parameters

$target
$operation
$request
$response

Properties summary

public $operation : ICanBoogie\Operation

The route.

The route.


		
public $request : ICanBoogie\HTTP\Request

The HTTP request.

The HTTP request.


		
public $response : ICanBoogie\HTTP\Response

Reference to the HTTP response.

Reference to the HTTP response.


		
Operation 2.2.x – Check on GitHub – API documentation generated by ApiGen