src/Bridge/Symfony/Routing/OperationMethodResolver.php
private function getRoute(string $routeName): Route
    {
        foreach ($this->router->getRouteCollection() as $name => $route) {
            if ($routeName === $name) {
                return $route;
            }
        }

        throw new RuntimeException(sprintf('The route "%s" does not exist.', $routeName));
    }
private function getRoute(string $routeName): Route
    {
        foreach ($this->router->getRouteCollection() as $name => $route) {
            if ($routeName === $name) {
                return $route;
            }
        }

        throw new RuntimeException(sprintf('The route "%s" does not exist.', $routeName));
    }
private function getRoute ( string $ routeName ) : Route { foreach ( $ this -> router -> getRouteCollection ( ) as $ name => $ route ) { if ( $ routeName === $ name ) { return $ route ; } } throw new RuntimeException ( sprintf ( 'The route "%s" does not exist.' , $ routeName ) ) ; }
Gets the route with the given name.

@throws RuntimeException
Gets the route with the given name .