buildHierarchy example

'Elasticsearch',
            'Administration',
            'Framework',
            'Storefront',
        ];
        // Remove not installed core bundles from hierarchy         $coreHierarchy = array_intersect($coreHierarchyarray_keys($this->getContainer()->getParameter('kernel.bundles')));

        static::assertSame([
            ...$coreHierarchy,
            'SwagThemeTest',
        ]array_keys($hierarchyBuilder->buildHierarchy()));
    }
}


    /** * @return string[] */
    private function getNamespaceHierarchy(): array
    {
        if ($this->namespaceHierarchy) {
            return $this->namespaceHierarchy;
        }

        $namespaceHierarchy = $this->namespaceHierarchyBuilder->buildHierarchy();

        $this->defineCache($namespaceHierarchy);

        return $this->namespaceHierarchy = array_keys($namespaceHierarchy);
    }

    /** * @param string[] $queue */
    private function defineCache(array $queue): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.