public function getBundleClass($name)
    {
        if (array_key_exists($name, $this->bundles)) {
            return $this->bundles[$name];
        }

        throw new \LogicException(sprintf('Bundle \'%s\' does not exist.', $name));
    }
public function getBundleClass($name)
    {
        if (array_key_exists($name, $this->bundles)) {
            return $this->bundles[$name];
        }

        throw new \LogicException(sprintf('Bundle \'%s\' does not exist.', $name));
    }
public function getBundleClass ( $ name ) { if ( array_key_exists ( $ name , $ this -> bundles ) ) { return $ this -> bundles [ $ name ] ; } throw new \ LogicException ( sprintf ( 'Bundle \'%s\' does not exist.' , $ name ) ) ; }
Returns bundle class namespace else throws an exception.

@param string $name

@return string

@throws \LogicException
Returns bundle class namespace else throws an exception .