You are here

interface RequestMatcherInterface in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/RequestMatcherInterface.php \Symfony\Component\HttpFoundation\RequestMatcherInterface
  2. 8.0 vendor/symfony/routing/Matcher/RequestMatcherInterface.php \Symfony\Component\Routing\Matcher\RequestMatcherInterface
Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Matcher/RequestMatcherInterface.php \Symfony\Component\Routing\Matcher\RequestMatcherInterface

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

12 files declare their use of RequestMatcherInterface
AccessAwareRouterInterface.php in core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
Contains \Drupal\Core\Routing\AccessAwareRouterInterface.
ChainRouter.php in vendor/symfony-cmf/routing/ChainRouter.php
ChainRouterInterface.php in vendor/symfony-cmf/routing/ChainRouterInterface.php
ChainRouterTest.php in vendor/symfony-cmf/routing/Tests/Routing/ChainRouterTest.php
ConfigTranslationController.php in core/modules/config_translation/src/Controller/ConfigTranslationController.php
Contains \Drupal\config_translation\Controller\ConfigTranslationController.

... See full list

File

vendor/symfony/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. 7