Example #1
0
 /**
  * getContext
  *
  * @param InputInterface $input
  * @param OutputInterface $output
  *
  * @return Context
  */
 protected function getContext(InputInterface $input, OutputInterface $output)
 {
     $context = new Context($input->getOption('timeout'), $input->getOption('max-messages'), !$input->getOption('no-sighandler'), $input->getOption('requeue-on-error'), $input->getOption('poll-interval'));
     $context->setOutput($output);
     return $context;
 }