processor = $processor; parent::__construct(); } /** * @inheritdoc */ protected function configure() { $this->setName(self::COMMAND_NAME) ->setDescription('Import data from shared configuration files to appropriate data storage'); parent::configure(); } /** * Imports data from deployment configuration files to the DB. {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { try { $this->processor->execute($input, $output); } catch (RuntimeException $e) { $output->writeln('' . $e->getMessage() . ''); return Cli::RETURN_FAILURE; } return Cli::RETURN_SUCCESS; } }