don't needed to call Propel Application

This commit is contained in:
Manuel Raynaud
2013-07-11 16:49:21 +02:00
parent 98589cc2b6
commit 3c18acb3fc
2 changed files with 1 additions and 8 deletions

View File

@@ -55,9 +55,4 @@ abstract class BaseModuleGenerate extends ContainerAwareCommand {
} }
return ucfirst($name); return ucfirst($name);
} }
protected function getPropelApplication()
{
return new Application("Propel", Propel::VERSION);
}
} }

View File

@@ -64,10 +64,8 @@ class ModuleGenerateModelCommand extends BaseModuleGenerate {
} }
$propelApp = $this->getPropelApplication();
$moduleBuildPropel = new ModelBuildCommand(); $moduleBuildPropel = new ModelBuildCommand();
$moduleBuildPropel->setApplication($propelApp); $moduleBuildPropel->setApplication($this->getApplication());
$moduleBuildPropel->run( $moduleBuildPropel->run(
new ArrayInput(array( new ArrayInput(array(