private function getServiceClass($name)
    {
        $serviceId = $this->getServiceId($name);
        $parameterId = $serviceId.'.class';
        if ($this->container->hasParameter($parameterId)) {
            $class = $this->container->getParameter($parameterId);
        } elseif (array_key_exists($name, $this->options)) {
            $class = $this->options[$name];
        } else {
            throw new \RuntimeException(sprintf('Undefined "%s" service class.', $name));
        }
        return $class;
    }
private function getServiceClass($name)
    {
        $serviceId = $this->getServiceId($name);
        $parameterId = $serviceId.'.class';
        if ($this->container->hasParameter($parameterId)) {
            $class = $this->container->getParameter($parameterId);
        } elseif (array_key_exists($name, $this->options)) {
            $class = $this->options[$name];
        } else {
            throw new \RuntimeException(sprintf('Undefined "%s" service class.', $name));
        }
        return $class;
    }
private function getServiceClass ( $ name ) { $ serviceId = $ this -> getServiceId ( $ name ) ; $ parameterId = $ serviceId . '.class' ; if ( $ this -> container -> hasParameter ( $ parameterId ) ) { $ class = $ this -> container -> getParameter ( $ parameterId ) ; } elseif ( array_key_exists ( $ name , $ this -> options ) ) { $ class = $ this -> options [ $ name ] ; } else { throw new \ RuntimeException ( sprintf ( 'Undefined "%s" service class.' , $ name ) ) ; } return $ class ; }
Returns the service class for the given name.

@param string $name

@throws \RuntimeException

@return string|null
Returns the service class for the given name .