router
class router implements RouterInterface
Integration of all pieces of the routing system for easier use.
Properties
protected ContainerInterface | $container | ||
protected resources_locator_interface | $resources_locator | ||
protected LoaderInterface | $loader | ||
protected string | $php_ext | PHP file extensions |
|
protected UrlMatcherInterface|null | $matcher | ||
protected UrlGeneratorInterface|null | $generator | ||
protected RequestContext | $context | ||
protected RouteCollection | $route_collection | ||
protected string | $cache_dir |
Methods
Construct method
Get the list of routes
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Gets the UrlMatcher instance associated with this Router.
Creates a new dumped URL Matcher (dump it if necessary)
Creates a new URL Matcher
Gets the UrlGenerator instance associated with this Router.
Creates a new dumped URL Generator (dump it if necessary)
Creates a new URL Generator
Replaces placeholders with service container parameter values in:
- the route defaults,
- the route requirements,
- the route path,
- the route host,
- the route schemes,
- the route methods.
Details
at line 92
__construct(ContainerInterface $container, resources_locator_interface $resources_locator, LoaderInterface $loader, string $php_ext, string $cache_dir)
Construct method
at line 107
RouteCollection
get_routes()
Get the list of routes
at line 133
getRouteCollection()
{@inheritdoc}
at line 141
setContext(RequestContext $context)
{@inheritdoc}
at line 158
getContext()
{@inheritdoc}
at line 166
generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)
{@inheritdoc}
at line 174
match($pathinfo)
{@inheritdoc}
at line 184
UrlMatcherInterface
get_matcher()
Gets the UrlMatcher instance associated with this Router.
at line 199
protected
create_dumped_url_matcher()
Creates a new dumped URL Matcher (dump it if necessary)
at line 229
protected
create_new_url_matcher()
Creates a new URL Matcher
at line 239
UrlGeneratorInterface
get_generator()
Gets the UrlGenerator instance associated with this Router.
at line 254
protected
create_dumped_url_generator()
Creates a new dumped URL Generator (dump it if necessary)
at line 284
protected
create_new_url_generator()
Creates a new URL Generator
at line 300
protected
resolveParameters(RouteCollection $collection)
Replaces placeholders with service container parameter values in:
- the route defaults,
- the route requirements,
- the route path,
- the route host,
- the route schemes,
- the route methods.