Uses new helper functions

This commit is contained in:
Franck Allimant
2014-04-26 16:02:23 +02:00
parent addbd9a84c
commit 5c6940b427
5 changed files with 7 additions and 15 deletions

View File

@@ -52,9 +52,7 @@ class ModuleActivateCommand extends BaseModuleGenerate
}
try {
$moduleReflection = new \ReflectionClass($module->getFullNamespace());
$moduleInstance = $moduleReflection->newInstance();
$moduleInstance = $module->createInstance();
$moduleInstance->activate();
} catch (\Exception $e) {