Router
class Router (View source)
A path router.
Methods
$this
addMaps(array $maps)
addMaps
boolean
hasRoute(string $name)
hasRoute
string
build(string $name, array $queries = array(), bool $rootSlash = false)
buildRoute
getMatcher()
Method to get property Matcher
Details
at line line 49
__construct(array $routes = array(), MatcherInterface $matcher = null)
Class init.
at line line 80
$this
addMaps(array $maps)
addMaps
at line line 101
Route
addRoute(string|Route $name, string $pattern = null, array $variables = array(), array $method = array(), array $options = array())
Add Route
at line line 145
boolean
hasRoute(string $name)
hasRoute
at line line 212
Route|boolean
match(string $route, string $method = 'GET', array $options = array())
parseRoute
at line line 241
string
build(string $name, array $queries = array(), bool $rootSlash = false)
buildRoute
at line line 263
MatcherInterface
getMatcher()
Method to get property Matcher
at line line 275
Router
setMatcher(MatcherInterface $matcher)
Method to set property matcher