public function getService($name)
    {
        if (!$this->serviceManager) {
            throw new Exception\UndefinedReferenceException('Cannot get service without an service manager instance!');
        }

        return $this->serviceManager->get($name);
    }
public function getService($name)
    {
        if (!$this->serviceManager) {
            throw new Exception\UndefinedReferenceException('Cannot get service without an service manager instance!');
        }

        return $this->serviceManager->get($name);
    }
public function getService ( $ name ) { if ( ! $ this -> serviceManager ) { throw new Exception \ UndefinedReferenceException ( 'Cannot get service without an service manager instance!' ) ; } return $ this -> serviceManager -> get ( $ name ) ; }
Returns a specific service instance

@param string $name
@return object
Returns a specific service instance