From 3db09add7eace5766fccd483ae671af6ab183aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Sun, 9 Aug 2015 22:18:23 +0200 Subject: [PATCH] Fix generation --- libs/Console/Generate.php | 2 ++ libs/GeneratorHelper.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/Console/Generate.php b/libs/Console/Generate.php index 7960d45..7bbac92 100644 --- a/libs/Console/Generate.php +++ b/libs/Console/Generate.php @@ -55,6 +55,8 @@ class Generate extends SymfonyCommand $daux->setDocumentationPath($daux->getParams()['docs_directory']); + $daux->setThemesPath($daux->getParams()['themes_directory']); + $daux->initializeConfiguration($input->getOption('configuration')); return $daux; diff --git a/libs/GeneratorHelper.php b/libs/GeneratorHelper.php index 65c7cc6..a970bc4 100644 --- a/libs/GeneratorHelper.php +++ b/libs/GeneratorHelper.php @@ -16,10 +16,10 @@ class GeneratorHelper mkdir($path); } - mkdir($path . DIRECTORY_SEPARATOR . 'resources'); + mkdir($path . DIRECTORY_SEPARATOR . 'themes'); static::copyRecursive( - $local_base . DIRECTORY_SEPARATOR . 'resources', - $path . DIRECTORY_SEPARATOR . 'resources' + $local_base . DIRECTORY_SEPARATOR . 'themes', + $path . DIRECTORY_SEPARATOR . 'themes' ); }