interface RequestMatcherInterface

Same name in this branch

RequestMatcherInterface is the interface that all request matcher classes must implement.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of RequestMatcherInterface

All classes that implement RequestMatcherInterface

6 files declare their use of RequestMatcherInterface
ChainRouter.php in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php
DynamicRouter.php in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
LegacyUrlMatcher.php in drupal/core/lib/Drupal/Core/LegacyUrlMatcher.php
Definition of Drupal\Core\LegacyUrlMatcher.
MockMatcher.php in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/MockMatcher.php
Definition of Drupal\system\Tests\Routing\MockMatcher.
NestedMatcher.php in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/NestedMatcher/NestedMatcher.php

... See full list

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php, line 23

Namespace

Symfony\Component\Routing\Matcher
View source
interface RequestMatcherInterface {

  /**
   * Tries to match a request with a set of routes.
   *
   * If the matcher can not find information, it must throw one of the exceptions documented
   * below.
   *
   * @param Request $request The request to match
   *
   * @return array An array of parameters
   *
   * @throws ResourceNotFoundException If no matching resource could be found
   * @throws MethodNotAllowedException If a matching resource was found but the request method is not allowed
   */
  public function matchRequest(Request $request);

}

Members

Namesort descending Modifiers Type Description Overrides
RequestMatcherInterface::matchRequest public function Tries to match a request with a set of routes. 5