/**
* Gets a route by name.
*/
public function get(string
$name): ?Route
{ $visited =
[];
while (null !==
$alias =
$this->aliases
[$name] ?? null
) { if (false !==
$searchKey =
array_search($name,
$visited)) { $visited[] =
$name;
throw new RouteCircularReferenceException($name, \
array_slice($visited,
$searchKey));
} if ($alias->
isDeprecated()) { $deprecation =
$alias->
getDeprecation($name);
trigger_deprecation($deprecation['package'
],
$deprecation['version'
],
$deprecation['message'
]);
} $visited[] =
$name;
$name =
$alias->
getId();
}