/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $em = $this->get('entity_manager'); $helperSet = new HelperSet(); $helperSet->set(new ConnectionHelper($em->getConnection()), 'db'); $helperSet->set(new EntityManagerHelper($em), 'em'); $arguments = array(); if ($input->getOption('show-versions')) { $arguments['--show-versions'] = $input->getArgument('show-versions'); } $configDir = $this->get('config')->get('[directories][config_dir]'); $arguments['--configuration'] = $configDir . '/migrations.yml'; $command = new StatusCommand(); $command->setHelperSet($helperSet); $returnCode = $command->run(new ArrayInput($arguments), $output); return $returnCode; }