Class Dispatcher
Dispatches requests among the defined routes.
If a route matching the request is found, the $route
and
$decontextualized_path
properties are add to the request object.
$route
holds the route object, $decontextualized_path
holds the decontextualized path. The path is decontextualized using the ICanBoogie\Routing\decontextualize()
function.
use ICanBoogie\HTTP\Dispatcher; $dispatcher = new Dispatcher(array('routes' => 'ICanBoogie\Routing\Dispatcher'));
- ICanBoogie\Routing\Dispatcher implements ICanBoogie\HTTP\IDispatcher
Methods summary
public
|
|
protected
|
|
public
|
#
rescue(
Fires |