Provider/RouteProvider.php
public function getRouteByName($identifier)
    {
        $id       = str_replace(self::DYNAMIC_PREFIX, '', $identifier);
        $resource = $this->repository->find($id);
        
        if ($resource instanceof Route) {
            return $this->createRoute($resource);
        }
        
        return null;
    }
public function getRouteByName($identifier)
    {
        $id       = str_replace(self::DYNAMIC_PREFIX, '', $identifier);
        $resource = $this->repository->find($id);
        
        if ($resource instanceof Route) {
            return $this->createRoute($resource);
        }
        
        return null;
    }
public function getRouteByName ( $ identifier ) { $ id = str_replace ( self :: DYNAMIC_PREFIX , '' , $ identifier ) ; $ resource = $ this -> repository -> find ( $ id ) ; if ( $ resource instanceof Route ) { return $ this -> createRoute ( $ resource ) ; } return null ; }
Returns route by its identifier

@param string $identifier

@return SymfonyRoute
Returns route by its identifier