protected function getServiceManager()
    {
        try {
            $serviceManager = $this->getOriginalServiceManager();
        } catch (InvalidServiceManagerException $e) {
            $serviceManager = ServiceManager::getServiceManager();
        }
        return $serviceManager;
    }
protected function getServiceManager()
    {
        try {
            $serviceManager = $this->getOriginalServiceManager();
        } catch (InvalidServiceManagerException $e) {
            $serviceManager = ServiceManager::getServiceManager();
        }
        return $serviceManager;
    }
protected function getServiceManager ( ) { try { $ serviceManager = $ this -> getOriginalServiceManager ( ) ; } catch ( InvalidServiceManagerException $ e ) { $ serviceManager = ServiceManager :: getServiceManager ( ) ; } return $ serviceManager ; }
Get the service Manager

@deprecated Use $this->propagate or $this->registerService to access ServiceManager functionalities
@deprecated To get the service dependencies manager, use $this->getServiceLocator

@return ServiceManager
Get the service Manager