示例#1
0
 /**
  * @inheritDoc
  * @return QueryAction
  */
 protected function configureAction(InputInterface $input)
 {
     $action = parent::configureAction($input);
     if (!$action instanceof QueryAction) {
         throw new InvalidArgumentException('Query action command is for detailing with query actions only');
     }
     if ($input->hasArgument('column') && $input->hasArgument('value')) {
         $action->addRootCriteria($input->getArgument('column'), $input->getArgument('value'));
     }
     return $action;
 }
示例#2
0
 /**
  * @param InputInterface  $input
  * @param OutputInterface $output
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->doxport->getAction()->run();
     $this->logger->notice('All done.');
 }