*/ class SqlBuildCommand extends WrappedCommand { /** * {@inheritdoc} */ protected function configure() { parent::configure(); $this ->setName('propel:sql:build') ->setDescription('Build SQL files') ->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\SqlBuildCommand(); } /** * {@inheritdoc} */ protected function getSubCommandArguments(InputInterface $input) { return array( '--output-dir' => $this->getCacheDir(), '--connection' => $this->getConnections($input->getOption('connection')), ); } }