Gets a route by name.
string $name: The route name
\Symfony\Component\Routing\Route|null A Route instance or null when not found
Overrides RouteCollection::get
public function get($name) : ?Route { try { return $this->provider ->getRouteByName($name); } catch (RouteNotFoundException) { return NULL; } }