private function gatherRoutesDefinitions()
    {
        $route = $this->findRouteByName($this->homeRouteName);
        $this->homeDefinition = new RouteDefinition($this->homeRouteName, $this->resolveRouteOptions($route, $this->homeRouteName));

        /** @var Route $route */
        foreach ($this->routes as $name => $route) {
            if ($this->homeRouteName !== $name && null !== $cms = $route->getOption('_cms')) {
                if (array_key_exists('name', $cms)) {
                    $this->createRouteDefinition($name, $route);
                }
            }
        }

        $this->homeDefinition->sortChildren();
    }
private function gatherRoutesDefinitions()
    {
        $route = $this->findRouteByName($this->homeRouteName);
        $this->homeDefinition = new RouteDefinition($this->homeRouteName, $this->resolveRouteOptions($route, $this->homeRouteName));

        /** @var Route $route */
        foreach ($this->routes as $name => $route) {
            if ($this->homeRouteName !== $name && null !== $cms = $route->getOption('_cms')) {
                if (array_key_exists('name', $cms)) {
                    $this->createRouteDefinition($name, $route);
                }
            }
        }

        $this->homeDefinition->sortChildren();
    }
private function gatherRoutesDefinitions ( ) { $ route = $ this -> findRouteByName ( $ this -> homeRouteName ) ; $ this -> homeDefinition = new RouteDefinition ( $ this -> homeRouteName , $ this -> resolveRouteOptions ( $ route , $ this -> homeRouteName ) ) ; /** @var Route $route */ foreach ( $ this -> routes as $ name => $ route ) { if ( $ this -> homeRouteName !== $ name && null !== $ cms = $ route -> getOption ( '_cms' ) ) { if ( array_key_exists ( 'name' , $ cms ) ) { $ this -> createRouteDefinition ( $ name , $ route ) ; } } } $ this -> homeDefinition -> sortChildren ( ) ; }
Creates a tree of RouteDefinition

@throws \RuntimeException
Creates a tree of RouteDefinition