protected function getSkeletonDirs(BundleInterface $bundle = null)
    {
        $skeletonDirs = array();

        if (isset($bundle) && is_dir($dir = $bundle->getPath().'/Resources/SymfonyIdAdminBundle/skeleton')) {
            $skeletonDirs[] = $dir;
        }

        /** @var KernelInterface $kernel */
        $kernel = $this->getContainer()->get('kernel');
        if (is_dir($dir = $kernel->getRootDir().'/Resources/SymfonyIdAdminBundle/skeleton')) {
            $skeletonDirs[] = $dir;
        }

        $reflClass = new \ReflectionObject($this);
        $skeletonDirs[] = dirname($reflClass->getFileName()).'/../Resources/skeleton';
        $skeletonDirs[] = dirname($reflClass->getFileName()).'/../Resources';

        return $skeletonDirs;
    }
protected function getSkeletonDirs(BundleInterface $bundle = null)
    {
        $skeletonDirs = array();

        if (isset($bundle) && is_dir($dir = $bundle->getPath().'/Resources/SymfonyIdAdminBundle/skeleton')) {
            $skeletonDirs[] = $dir;
        }

        /** @var KernelInterface $kernel */
        $kernel = $this->getContainer()->get('kernel');
        if (is_dir($dir = $kernel->getRootDir().'/Resources/SymfonyIdAdminBundle/skeleton')) {
            $skeletonDirs[] = $dir;
        }

        $reflClass = new \ReflectionObject($this);
        $skeletonDirs[] = dirname($reflClass->getFileName()).'/../Resources/skeleton';
        $skeletonDirs[] = dirname($reflClass->getFileName()).'/../Resources';

        return $skeletonDirs;
    }
protected function getSkeletonDirs ( BundleInterface $ bundle = null ) { $ skeletonDirs = array ( ) ; if ( isset ( $ bundle ) && is_dir ( $ dir = $ bundle -> getPath ( ) . '/Resources/SymfonyIdAdminBundle/skeleton' ) ) { $ skeletonDirs [ ] = $ dir ; } /** @var KernelInterface $kernel */ $ kernel = $ this -> getContainer ( ) -> get ( 'kernel' ) ; if ( is_dir ( $ dir = $ kernel -> getRootDir ( ) . '/Resources/SymfonyIdAdminBundle/skeleton' ) ) { $ skeletonDirs [ ] = $ dir ; } $ reflClass = new \ ReflectionObject ( $ this ) ; $ skeletonDirs [ ] = dirname ( $ reflClass -> getFileName ( ) ) . '/../Resources/skeleton' ; $ skeletonDirs [ ] = dirname ( $ reflClass -> getFileName ( ) ) . '/../Resources' ; return $ skeletonDirs ; }
Lookup in priority.

- <Bundle>/Resources/SymfonyIdAdminBundle/skeleton
- app/Resources/SymfonyIdAdminBundle/skeleton
- <ThisBundleDir>/Resources/skeleton
- <ThisBundleDir/Resources

@param BundleInterface|null $bundle

@return array
Lookup in priority .