if ('/' !==
$pathinfo && !
$hasTrailingVar &&
$hasTrailingSlash === ($trimmedPathinfo ===
$pathinfo)) { if ($supportsTrailingSlash && (!
$requiredMethods || \
in_array('GET',
$requiredMethods))) { $this->
addTrace('Route matches!', self::ROUTE_MATCHES,
$name,
$route);
return $this->allow =
$this->allowSchemes =
[];
} $this->
addTrace(sprintf('Path "%s" does not match',
$route->
getPath()), self::ROUTE_DOES_NOT_MATCH,
$name,
$route);
continue;
} if ($route->
getSchemes() && !
$route->
hasScheme($this->context->
getScheme())) { $this->allowSchemes =
array_merge($this->allowSchemes,
$route->
getSchemes());
$this->
addTrace(sprintf('Scheme "%s" does not match any of the required schemes (%s)',
$this->context->
getScheme(),
implode(', ',
$route->
getSchemes())), self::ROUTE_ALMOST_MATCHES,
$name,
$route);
continue;
} if ($requiredMethods && !\
in_array($method,
$requiredMethods)) { $this->allow =
array_merge($this->allow,
$requiredMethods);
$this->
addTrace(sprintf('Method "%s" does not match any of the required methods (%s)',
$this->context->
getMethod(),
implode(', ',
$requiredMethods)), self::ROUTE_ALMOST_MATCHES,
$name,
$route);
continue;
}