protected function getSkeletonDirs(BundleInterface $bundle = null)
 {
     $parentDirs = parent::getSkeletonDirs($bundle);
     $dirs = array_merge(array(__DIR__ . '/../Resources/skeleton'), $parentDirs);
     return $dirs;
 }
 /**
  * @param BundleInterface $bundle
  * @return array
  */
 protected function getSkeletonDirs(BundleInterface $bundle = null)
 {
     $reflClass = new \ReflectionClass(get_class($this));
     $skeletonDirs = parent::getSkeletonDirs($bundle);
     $skeletonDirs[] = dirname($reflClass->getFileName()) . '/../Resources/skeleton';
     $skeletonDirs[] = dirname($reflClass->getFileName()) . '/../Resources';
     return $skeletonDirs;
 }
 /**
  * add this bundle skeleton dirs to the beginning of the parent skeletonDirs array
  *
  * @param BundleInterface $bundle
  *
  * @return array
  */
 protected function getSkeletonDirs(BundleInterface $bundle = null)
 {
     $baseSkeletonDirs = parent::getSkeletonDirs($bundle);
     $skeletonDirs = array();
     if (isset($bundle) && is_dir($dir = $bundle->getPath() . '/Resources/PUGXGeneratorBundle/skeleton')) {
         $skeletonDirs[] = $dir;
     }
     if (is_dir($dir = $this->getContainer()->get('kernel')->getRootdir() . '/Resources/PUGXGeneratorBundle/skeleton')) {
         $skeletonDirs[] = $dir;
     }
     $bundlesDirectories = $this->getContainer()->get('kernel')->locateResource('@PUGXGeneratorBundle/Resources/skeleton', null, false);
     $skeletonDirs = array_merge($skeletonDirs, $bundlesDirectories);
     $skeletonDirs[] = __DIR__ . '/../Resources';
     return array_merge($skeletonDirs, $baseSkeletonDirs);
 }