public function addRunner($name, WorkerRunnerInterface $runner, array $options = array())
    {
        $this->runners[$name] = array(
            'runner' => $runner,
            'options' => $options,
        );
    }
public function addRunner($name, WorkerRunnerInterface $runner, array $options = array())
    {
        $this->runners[$name] = array(
            'runner' => $runner,
            'options' => $options,
        );
    }
public function addRunner ( $ name , WorkerRunnerInterface $ runner , array $ options = array ( ) ) { $ this -> runners [ $ name ] = array ( 'runner' => $ runner , 'options' => $ options , ) ; }
Register runner.

@param string $name Worker name.
@param WorkerRunnerInterface $runner Worker runner.
@param array $options Worker options.
Register runner .