ICanBoogie
  • Documentation
  • API Reference
  • Routing 4.0.x
Namespaces
  • ICanBoogie
    • Routing
      • Controller
      • Route
      • RouteDispatcher
Classes
  • BeforeDispatchEvent
  • DispatchEvent

Class DispatchEvent

Event class for the ICanBoogie\Routing\RouteDispatcher::dispatch event.

Third parties may use this event to alter the response before it is returned by the dispatcher.

ICanBoogie\Event
┗ ICanBoogie\Routing\RouteDispatcher\DispatchEvent
Namespace: ICanBoogie\Routing\RouteDispatcher
Located at RouteDispatcher/DispatchEvent.php

Methods summary

protected get_route( void )
protected get_request( void )
protected get_response( void )
protected set_response( ICanBoogie\HTTP\Response $response = null )
public __construct( ICanBoogie\Routing\RouteDispatcher $target, ICanBoogie\Routing\Route $route, ICanBoogie\HTTP\Request $request, ICanBoogie\HTTP\Response & $response = null )

The event is constructed with the type dispatch.

The event is constructed with the type dispatch.

Parameters

$target
$route
$request
$response

Constants summary

TYPE : string
'dispatch'

Properties summary

Magic properties

public $response : ICanBoogie\HTTP\Response
public read-only $route : ICanBoogie\Routing\Route
public read-only $request : ICanBoogie\HTTP\Request
Routing 4.0.x – Check on GitHub – API documentation generated by ApiGen