ICanBoogie/Routing master
  • Namespace
  • Class

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

string TYPE
# 'dispatch'

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 master API documentation generated by ApiGen