Symfony\Bundle\FrameworkBundle\Routing\Router
This Router creates the Loader only when the cache is empty.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Router
extends Router
implements
WarmableInterface
{
- // members
- private $container;
- // Inherited members from Router
- protected UrlMatcherInterface|null $matcher;
- protected UrlGeneratorInterface|null $generator;
- protected RequestContext $context;
- protected LoaderInterface $loader;
- protected RouteCollection|null $collection;
- protected mixed $resource;
- protected array $options;
- protected LoggerInterface|null $logger;
- // methods
- public void __construct()
- public void getRouteCollection()
- public void warmUp()
- private void resolveParameters()
- private mixed resolve()
- // Inherited methods from Router
- public void __construct()
- public void setOptions()
- public void setOption()
- public mixed getOption()
- public void getRouteCollection()
- public void setContext()
- public void getContext()
- public void generate()
- public void match()
- public UrlMatcherInterface getMatcher()
- public UrlGeneratorInterface getGenerator()
Hierarchy
Extends
Implements
Members
private
- $container
protected
- $collection — Symfony\Component\Routing\RouteCollection|null
- $context — Symfony\Component\Routing\RequestContext
- $generator — Symfony\Component\Routing\UrlGeneratorInterface|null
- $loader — Symfony\Component\Config\Loader\LoaderInterface
- $logger — Symfony\Component\Routing\LoggerInterface|null
- $matcher — Symfony\Component\Routing\UrlMatcherInterface|null
- $options — array
- $resource — mixed
Methods
private
- resolve() — Recursively replaces placeholders with the service container parameters.
- resolveParameters() — Replaces placeholders with service container parameter values in: - the route defaults, - the route requirements, - the route pattern.
public
- __construct() — Constructor.
- getRouteCollection() — {@inheritdoc}
- warmUp() — {@inheritdoc}
Inherited from Symfony\Component\Routing\Router
public
- generate() — {@inheritdoc}
- getContext() — {@inheritdoc}
- getGenerator() — Gets the UrlGenerator instance associated with this Router.
- getMatcher() — Gets the UrlMatcher instance associated with this Router.
- getOption() — Gets an option value.
- getRouteCollection() — {@inheritdoc}
- match() — {@inheritdoc}
- setContext() — {@inheritdoc}
- setOption() — Sets an option.
- setOptions() — Sets options.