diff --git a/console/command/module.class.php b/console/command/module.class.php index c3eff26..4e25e7d 100644 --- a/console/command/module.class.php +++ b/console/command/module.class.php @@ -103,8 +103,8 @@ class module include dirname(__FILE__).DIRECTORY_SEPARATOR.'symfony.class.php'; symfony::stabilize(); - $symfony_root = shell_exec('cp -f '.CONSOLE_PATH.'/skel/symfony-app '.MODULES_PATH.'/'.$name); - $symfony_composer = shell_exec('cd '.MODULES_PATH.' && composer update'); + $symfony_root = shell_exec('cp -fr '.CONSOLE_PATH.'/skel/symfony-app '.MODULES_PATH.'/'.$name); + $symfony_composer = shell_exec('cd '.MODULES_PATH.'/'.$name.' && composer update'); print 'n\'oublier pas d\'ajouter:\n' .'\n'.$name.' : Application permettant d\'intégrer un module avec symfony' diff --git a/console/command/symfony.class.php b/console/command/symfony.class.php index 941621d..daac767 100644 --- a/console/command/symfony.class.php +++ b/console/command/symfony.class.php @@ -10,7 +10,7 @@ class symfony static public function stabilize(){ print "stabilize symfony module...\n\n"; - $symfony_module = shell_exec('cp -f '.CONSOLE_PATH.'/skel/symfony '.VENDOR_PATH); + $symfony_module = shell_exec('cp -fr '.CONSOLE_PATH.'/skel/symfony '.VENDOR_PATH); } } \ No newline at end of file