Esempio n. 1
0
 /**
  * Adds bundle's classcontent directory into application.
  *
  * @param Config        $config
  * @param callable|null $recipe
  */
 private function addClassContentDir(Config $config, callable $recipe = null)
 {
     if (null !== $recipe) {
         $this->runRecipe($config, $recipe);
     } else {
         $directory = realpath(dirname($config->getBaseDir()) . DIRECTORY_SEPARATOR . 'ClassContent');
         if (false !== $directory) {
             $this->application->unshiftClassContentDir($directory);
         }
     }
 }