private function addTemplatesDir(Config $config, callable $recipe = null)
    {
        if (false === $this->runRecipe($config, $recipe)) {
            $directory = realpath(
                dirname($config->getBaseDir()).DIRECTORY_SEPARATOR
                .'Templates'.DIRECTORY_SEPARATOR.'scripts'
            );
            if (false !== $directory) {
                $this->application->getRenderer()->addScriptDir($directory);
            }
        }
    }
private function addTemplatesDir(Config $config, callable $recipe = null)
    {
        if (false === $this->runRecipe($config, $recipe)) {
            $directory = realpath(
                dirname($config->getBaseDir()).DIRECTORY_SEPARATOR
                .'Templates'.DIRECTORY_SEPARATOR.'scripts'
            );
            if (false !== $directory) {
                $this->application->getRenderer()->addScriptDir($directory);
            }
        }
    }
private function addTemplatesDir ( Config $ config , callable $ recipe = null ) { if ( false === $ this -> runRecipe ( $ config , $ recipe ) ) { $ directory = realpath ( dirname ( $ config -> getBaseDir ( ) ) . DIRECTORY_SEPARATOR . 'Templates' . DIRECTORY_SEPARATOR . 'scripts' ) ; if ( false !== $ directory ) { $ this -> application -> getRenderer ( ) -> addScriptDir ( $ directory ) ; } } }
Adds bundle's templates base directory into application's renderer.

@param Config        $config
@param callable|null $recipe
Adds bundle s templates base directory into application s renderer .