Symfony\Component\Routing\RouteCollection::getRoot PHP 메소드

getRoot() 공개 메소드

Gets the root RouteCollection of the tree.
public getRoot ( ) : RouteCollection
리턴 RouteCollection The root RouteCollection
    public function getRoot()
    {
        $parent = $this;
        while ($parent->getParent()) {
            $parent = $parent->getParent();
        }

        return $parent;
    }