Class Router
FastRoute implementation of the router.
- Autarky\Routing\Router implements Autarky\Routing\RouterInterface
public
|
#
__construct( FastRoute\RouteParser $routeParser,
|
public
boolean
|
|
public
SplObjectStorage
|
|
public
|
|
public
|
#
addBeforeHook( string $name, callable $handler, integer $priority = 0 )
Add a "before" event listener. |
public
|
#
addAfterHook( string $name, callable $handler, integer $priority = 0 )
Add an "after" event listener. |
public
|
#
addGlobalBeforeHook( callable $handler, integer $priority = 0 )
Add a global "before" event listener. |
public
|
#
addGlobalAfterHook( callable $handler, integer $priority = 0 )
Add a global "after" event listener. |
protected
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
Symfony\Component\HttpFoundation\Response
|
|
public
|
#
getRouteForRequest( Symfony\Component\HttpFoundation\Request $request )
Get the Route object corresponding to a given request. |
protected
|
#
matchRoute(
|
protected
|
#
getResponse( Symfony\Component\HttpFoundation\Request $request,
|
protected
|
#
getContainerParams(
|
protected
|
|
protected
|
protected
|
$invoker
|
|
protected
Symfony\Component\EventDispatcher\EventDispatcherInterface
|
$eventDispatcher
|
|
protected
FastRoute\RouteCollector
|
$routeCollector
|
|
protected
FastRoute\RouteParser
|
$routeParser
|
|
protected
mixed
|
$dispatchData
|
|
protected
string|null
|
$cachePath
|
|
protected
|
$currentRoute
|
|
protected
array
|
$currentHooks
The hooks that are currently applied to every route being added. |
#
[]
|
protected
string
|
$currentPrefix
The URL prefix that is currently applied to every route being added. |
#
''
|
protected
array
|
$hooks
|
#
[]
|
protected
SplObjectStorage
|
$routes
|
|
protected
array
|
$namedRoutes
|
#
[]
|