Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompiledUrlMatcher.php

class CompiledUrlMatcher

Matches URLs based on rules dumped by CompiledUrlMatcherDumper.

@author Nicolas Grekas <p@tchwork.com>

Hierarchy

  • class \Symfony\Component\Routing\Matcher\UrlMatcher implements \Symfony\Component\Routing\Matcher\UrlMatcherInterface, \Symfony\Component\Routing\Matcher\RequestMatcherInterface
    • class \Symfony\Component\Routing\Matcher\CompiledUrlMatcher extends \Symfony\Component\Routing\Matcher\UrlMatcher uses \Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherTrait

Expanded class hierarchy of CompiledUrlMatcher

1 file declares its use of CompiledUrlMatcher
Router.php in vendor/symfony/routing/Router.php

File

vendor/symfony/routing/Matcher/CompiledUrlMatcher.php, line 22

Namespace

Symfony\Component\Routing\Matcher
View source
class CompiledUrlMatcher extends UrlMatcher {
    use CompiledUrlMatcherTrait;
    public function __construct(array $compiledRoutes, RequestContext $context) {
        $this->context = $context;
        [
            $this->matchHost,
            $this->staticRoutes,
            $this->regexpList,
            $this->dynamicRoutes,
            $this->checkCondition,
        ] = $compiledRoutes;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
CompiledUrlMatcher::__construct public function Overrides UrlMatcher::__construct
CompiledUrlMatcherTrait::$checkCondition private property
CompiledUrlMatcherTrait::$dynamicRoutes private property
CompiledUrlMatcherTrait::$matchHost private property
CompiledUrlMatcherTrait::$regexpList private property
CompiledUrlMatcherTrait::$staticRoutes private property
CompiledUrlMatcherTrait::doMatch private function
CompiledUrlMatcherTrait::match public function
UrlMatcher::$allow protected property Collects HTTP methods that would be allowed for the request.
UrlMatcher::$allowSchemes protected property Collects URI schemes that would be allowed for the request.
UrlMatcher::$expressionLanguage protected property
UrlMatcher::$expressionLanguageProviders protected property
UrlMatcher::$request protected property
UrlMatcher::addExpressionLanguageProvider public function
UrlMatcher::createRequest protected function @internal
UrlMatcher::getAttributes protected function Returns an array of values to use as request attributes. 1
UrlMatcher::getContext public function Gets the request context. Overrides RequestContextAwareInterface::getContext
UrlMatcher::getExpressionLanguage protected function
UrlMatcher::handleRouteRequirements protected function Handles specific route requirements.
UrlMatcher::matchCollection protected function Tries to match a URL with a set of routes. 2
UrlMatcher::matchRequest public function Tries to match a request with a set of routes. Overrides RequestMatcherInterface::matchRequest 1
UrlMatcher::mergeDefaults protected function Get merged default parameters.
UrlMatcher::REQUIREMENT_MATCH public constant
UrlMatcher::REQUIREMENT_MISMATCH public constant
UrlMatcher::ROUTE_MATCH public constant
UrlMatcher::setContext public function Sets the request context. Overrides RequestContextAwareInterface::setContext

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal