public function run($name, OutputInterface $output = null)
    {
        if (!$this->has($name)) {
            throw new InvalidArgumentException("No runner service registered for provided name.");
        }
        /* @var $runner WorkerRunnerInterface */
        $runner = $this->runners[$name]['runner'];
        $runner->run($this->runners[$name]['options'], $output);
    }
public function run($name, OutputInterface $output = null)
    {
        if (!$this->has($name)) {
            throw new InvalidArgumentException("No runner service registered for provided name.");
        }
        /* @var $runner WorkerRunnerInterface */
        $runner = $this->runners[$name]['runner'];
        $runner->run($this->runners[$name]['options'], $output);
    }
public function run ( $ name , OutputInterface $ output = null ) { if ( ! $ this -> has ( $ name ) ) { throw new InvalidArgumentException ( "No runner service registered for provided name." ) ; } /* @var $runner WorkerRunnerInterface */ $ runner = $ this -> runners [ $ name ] [ 'runner' ] ; $ runner -> run ( $ this -> runners [ $ name ] [ 'options' ] , $ output ) ; }
Run worker.

@param string $name
@param OutputInterface $output
@return void
@throws InvalidArgumentException Thrown, if worker cannto be found for provided name.
@throws Exception Can be thrown, if runner resulted with an error.
Run worker .