public function addRunnerService($name, $id, array $options = array())
    {
        if (!$this->container->has($id)) {
            throw new InvalidArgumentException("Service container does not have required service registered.");
        }
        $this->runnerServices[$name] = array(
            'id' => $id,
            'options' => $options,
        );
    }
public function addRunnerService($name, $id, array $options = array())
    {
        if (!$this->container->has($id)) {
            throw new InvalidArgumentException("Service container does not have required service registered.");
        }
        $this->runnerServices[$name] = array(
            'id' => $id,
            'options' => $options,
        );
    }
public function addRunnerService ( $ name , $ id , array $ options = array ( ) ) { if ( ! $ this -> container -> has ( $ id ) ) { throw new InvalidArgumentException ( "Service container does not have required service registered." ) ; } $ this -> runnerServices [ $ name ] = array ( 'id' => $ id , 'options' => $ options , ) ; }
Register runner service.

@param string $name Worker name.
@param string $id Service ID.
@param array $options Worker options.
@throws InvalidArgumentException Thrown, when there is no worker runner service registered in container.
Register runner service .