ICanBoogie/Routing 2.5.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Routing
      • Controller
      • Route
      • RouteDispatcher

Classes

  • BeforeDispatchEvent
  • DispatchEvent

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
Extended by ICanBoogie\Routing\RouteDispatcher\BeforeDispatchEvent
Namespace: ICanBoogie\Routing\RouteDispatcher
Located at RouteDispatcher/BeforeDispatchEvent.php

Methods summary

protected
# get_route( )
protected
# get_request( )
protected
# get_response( )
protected
# set_response( ICanBoogie\HTTP\Response & $response = null )
public
# __construct( ICanBoogie\Routing\RouteDispatcher $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

Magic properties

public ICanBoogie\HTTP\Response $response
public read-only ICanBoogie\Routing\Route $route
public read-only ICanBoogie\HTTP\Request $request
ICanBoogie/Routing 2.5.x API documentation generated by ApiGen