Newscoop\PluginGeneratorBundle\Command\GeneratorPluginCommand::getSkeletonDirs PHP Method

getSkeletonDirs() protected method

protected getSkeletonDirs ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle = null )
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
    protected function getSkeletonDirs(BundleInterface $bundle = null)
    {
        $skeletonDirs = array();
        if (isset($bundle) && is_dir($dir = $bundle->getPath() . '/Resources/SensioGeneratorBundle/skeleton')) {
            $skeletonDirs[] = $dir;
        }
        if (is_dir($dir = $this->getContainer()->get('kernel')->getRootdir() . '/Resources/SensioGeneratorBundle/skeleton')) {
            $skeletonDirs[] = $dir;
        }
        $skeletonDirs[] = __DIR__ . '/../Resources/skeleton';
        $skeletonDirs[] = __DIR__ . '/../Resources';
        return $skeletonDirs;
    }