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::match()

array match(string $pathinfo) Tries to match a URL path with a set of routes. If the matcher can not find information, it must throw one of the exceptions documented below. Parameters string $pathinfo The path info to be parsed (raw format, i.e. not urldecoded) Return Value array An array of parameters Exceptions ResourceNotFoundException If the resource could not be found MethodNotAllowedException If the resource was found but the request method is not allowed

Router::getMatcher()

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

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::getContext()

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

Router::getGenerator()

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

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()