protected function UrlMatcher::handleRouteRequirements

Handles specific route requirements.

Parameters

string $pathinfo The path:

string $name The route name:

Route $route The route:

Return value

array The first element represents the status, the second contains additional information

1 call to UrlMatcher::handleRouteRequirements()
UrlMatcher::matchCollection in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php
Tries to match a URL with a set of routes.
1 method overrides UrlMatcher::handleRouteRequirements()
RedirectableUrlMatcher::handleRouteRequirements in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php
Handles specific route requirements.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php, line 181

Class

UrlMatcher
UrlMatcher matches URL based on a set of routes.

Namespace

Symfony\Component\Routing\Matcher

Code

protected function handleRouteRequirements($pathinfo, $name, Route $route) {

  // check HTTP scheme requirement
  $scheme = $route
    ->getRequirement('_scheme');
  $status = $scheme && $scheme !== $this->context
    ->getScheme() ? self::REQUIREMENT_MISMATCH : self::REQUIREMENT_MATCH;
  return array(
    $status,
    null,
  );
}