Handles specific route requirements.
string $pathinfo The path:
string $name The route name:
Route $route The route:
array The first element represents the status, the second contains additional information
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,
);
}