ICanBoogie/Routing v2.4.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Routing
      • 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
Extended by 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 ICanBoogie\Routing\Route $route

The route.

The route.

#
public ICanBoogie\HTTP\Request $request

The HTTP request.

The HTTP request.

#
public ICanBoogie\HTTP\Response $response

Reference to the HTTP response.

Reference to the HTTP response.

#
ICanBoogie/Routing v2.4.0 API documentation generated by ApiGen