Router::getRouteCollection()

RouteCollection getRouteCollection() Gets the RouteCollection instance associated with this Router. Return Value RouteCollection A RouteCollection instance

Router::getRouteCollection()

RouteCollection getRouteCollection() Gets the RouteCollection instance associated with this Router. Return Value RouteCollection A RouteCollection instance

Router::getOption()

mixed getOption(string $key) Gets an option value. Parameters string $key The key Return Value mixed The value Exceptions InvalidArgumentException

Router::getMatcher()

UrlMatcherInterface getMatcher() Gets the UrlMatcher instance associated with this Router. Return Value UrlMatcherInterface A UrlMatcherInterface instance

Router::getGenerator()

UrlGeneratorInterface getGenerator() Gets the UrlGenerator instance associated with this Router. Return Value UrlGeneratorInterface A UrlGeneratorInterface instance

Router::getContext()

RequestContext getContext() Gets the request context. Return Value RequestContext The context

Router::generate()

string generate(string $name, mixed $parameters = array(), int $referenceType = self::ABSOLUTE_PATH) Generates a URL or path for a specific route based on the given parameters. Parameters that reference placeholders in the route pattern will substitute them in the path or host. Extra params are added as query string to the URL. When the passed reference type cannot be generated for the route because it requires a different host or scheme than the current one, the method will retu

Router::addExpressionLanguageProvider()

addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) Parameters ExpressionFunctionProviderInterface $provider

Router

class Router implements RouterInterface, RequestMatcherInterface The Router class is an example of the integration of all pieces of the routing system for easier use. Methods __construct(LoaderInterface $loader, mixed $resource, array $options = array(), RequestContext $context = null, LoggerInterface $logger = null) Constructor. setOptions(array $options) Sets options. setOption(string $key, mixed $value) Sets an option. mixed getOption(string $key) Gets an option value.

Router

class Router extends Router implements WarmableInterface This Router creates the Loader only when the cache is empty. Methods __construct(ContainerInterface $container, mixed $resource, array $options = array(), RequestContext $context = null) Constructor. setOptions(array $options) Sets options. from Router setOption(string $key, mixed $value) Sets an option. from Router mixed getOption(string $key) Gets an option value. from Router RouteCollection getRouteCollection()