Reorganised a bit the commands
This commit is contained in:
parent
bca3140e98
commit
fbd439ff01
5 changed files with 76 additions and 31 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue