public function createFromId(AbstractPageRouteConfiguration $routeConfiguration, $pageId)
    {
        $page = $this->repository->find($pageId);

        return $this->create($routeConfiguration, $page);
    }
public function createFromId(AbstractPageRouteConfiguration $routeConfiguration, $pageId)
    {
        $page = $this->repository->find($pageId);

        return $this->create($routeConfiguration, $page);
    }
public function createFromId ( AbstractPageRouteConfiguration $ routeConfiguration , $ pageId ) { $ page = $ this -> repository -> find ( $ pageId ) ; return $ this -> create ( $ routeConfiguration , $ page ) ; }
Create a new route instance from a page id

@param AbstractPageRouteConfiguration $routeConfiguration
@param int                            $pageId

@return \Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\Route
Create a new route instance from a page id