Reorganised a bit the commands

This commit is contained in:
Kévin Gomez 2013-10-31 20:39:12 +00:00
commit fbd439ff01
5 changed files with 76 additions and 31 deletions

View file

@ -34,15 +34,18 @@ class SqlInsertCommand extends AbstractCommand
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function createSubCommandInstance()
{
$this->setupBuildTimeFiles();
return new \Propel\Generator\Command\SqlInsertCommand();
}
$params = array(
'--connection' => $this->getConnections($input->getOption('connection')),
/**
* {@inheritdoc}
*/
protected function getSubCommandArguments(InputInterface $input)
{
return array(
'--connection' => $this->getConnections($input->getOption('connection')),
);
$command = new \Propel\Generator\Command\SqlInsertCommand();
return $this->runCommand($command, $params, $input, $output);
}
}