Symfony\Component\Routing\Matcher\ApacheUrlMatcher
ApacheUrlMatcher matches URL based on Apache mod_rewrite matching (see ApacheMatcherDumper).
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ApacheUrlMatcher
extends UrlMatcher
{
- // Inherited constants from UrlMatcher
- const REQUIREMENT_MATCH = 0;
- const REQUIREMENT_MISMATCH = 1;
- const ROUTE_MATCH = 2;
- // Inherited members from UrlMatcher
- protected RequestContext $context;
- protected array $allow;
- protected RouteCollection $routes;
- // methods
- public array match()
- // Inherited methods from UrlMatcher
- public void __construct()
- public void setContext()
- public void getContext()
- public void match()
- protected array matchCollection()
- protected array getAttributes()
- protected array handleRouteRequirements()
- protected array mergeDefaults()
Hierarchy
Constants
Name | Value |
---|---|
REQUIREMENT_MATCH | 0 |
REQUIREMENT_MISMATCH | 1 |
ROUTE_MATCH | 2 |
Members
protected
- $allow — array
- $context — Symfony\Component\Routing\RequestContext
- $routes — Symfony\Component\Routing\RouteCollection
Methods
public
- match() — Tries to match a URL based on Apache mod_rewrite matching.
Inherited from Symfony\Component\Routing\Matcher\UrlMatcher
protected
- getAttributes() — Returns an array of values to use as request attributes.
- handleRouteRequirements() — Handles specific route requirements.
- matchCollection() — Tries to match a URL with a set of routes.
- mergeDefaults() — Get merged default parameters.
public
- getContext() — {@inheritdoc}
- match() — {@inheritdoc}
- setContext() — {@inheritdoc}