*/ class SqlInsertCommand extends WrappedCommand { /** * {@inheritdoc} */ protected function configure() { $this ->setName('propel:sql:insert') ->setDescription('Insert SQL statements') ->addOption('connection', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Connection to use. Example: default, bookstore') ; } /** * {@inheritdoc} */ protected function createSubCommandInstance() { return new \Propel\Generator\Command\SqlInsertCommand(); } /** * {@inheritdoc} */ protected function getSubCommandArguments(InputInterface $input) { return array( '--connection' => $this->getConnections($input->getOption('connection')), '--sql-dir' => $this->cacheDir, ); } }