ICanBoogie
  • Documentation
  • API Reference
  • Routing v2.3.0
Namespaces
  • ICanBoogie
    • Routing
      • ActionController
      • Controller
      • Dispatcher
      • Route
Classes
  • BeforeDispatchEvent
  • DispatchEvent

Class BeforeDispatchEvent

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

Methods summary

public __construct( ICanBoogie\Routing\Dispatcher $target, ICanBoogie\Routing\Route $route, ICanBoogie\HTTP\Request $request, mixed & $response )

The event is constructed with the type dispatch:before.

The event is constructed with the type dispatch:before.

Parameters

$target
$route
$request
$response

Properties summary

public $route : ICanBoogie\Routing\Route

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.


		
Routing v2.3.0 – Check on GitHub – API documentation generated by ApiGen