private function hasRoute($routePattern, $routeName)
    {
        if (!$routeName) {
            throw new RoutingRuntimeException('Route name is empty!');
        }

        $route = $this->routeManager->findByRoutePattern($routePattern);

        return ((null !== $route) && ($routeName !== $route->getName()));
    }
private function hasRoute($routePattern, $routeName)
    {
        if (!$routeName) {
            throw new RoutingRuntimeException('Route name is empty!');
        }

        $route = $this->routeManager->findByRoutePattern($routePattern);

        return ((null !== $route) && ($routeName !== $route->getName()));
    }
private function hasRoute ( $ routePattern , $ routeName ) { if ( ! $ routeName ) { throw new RoutingRuntimeException ( 'Route name is empty!' ) ; } $ route = $ this -> routeManager -> findByRoutePattern ( $ routePattern ) ; return ( ( null !== $ route ) && ( $ routeName !== $ route -> getName ( ) ) ) ; }
Has route.

@param string $routePattern
@param string $routeName

@return bool

@throws RoutingRuntimeException
Has route .