Returns an array of values to use as request attributes.
As this method requires the Route object, it is not available in matchers that do not have access to the matched Route instance (like the PHP and Apache matcher dumpers).
Route $route The route we are matching against:
string $name The name of the route:
array $attributes An array of attributes from the matcher:
array An array of parameters
Overrides UrlMatcher::getAttributes
protected function getAttributes(Route $route, $name, array $attributes) {
if ($route instanceof RouteObjectInterface && is_string($route
->getRouteKey())) {
$name = $route
->getRouteKey();
}
$attributes[RouteObjectInterface::ROUTE_NAME] = $name;
$attributes[RouteObjectInterface::ROUTE_OBJECT] = $route;
return $this
->mergeDefaults($attributes, $route
->getDefaults());
}