protected function getAttributes(Route
$route, string
$name, array
$attributes): array
{ $defaults =
$route->
getDefaults();
if (isset($defaults['_canonical_route'
])) { $name =
$defaults['_canonical_route'
];
unset($defaults['_canonical_route'
]);
} $attributes['_route'
] =
$name;
return $this->
mergeDefaults($attributes,
$defaults);
} /**
* Handles specific route requirements.
*
* @return array The first element represents the status, the second contains additional information
*/
protected function handleRouteRequirements(string
$pathinfo, string
$name, Route
$route/* , array $routeParameters */
): array
{ if (\
func_num_args() < 4
) { trigger_deprecation('symfony/routing', '6.1', 'The "%s()" method will have a new "array $routeParameters" argument in version 7.0, not defining it is deprecated.', __METHOD__
);