public function get($className) {
        if (!$this->has($className)) {
            $errorMsg = sprintf(self::ERROR_SERVICE_NOT_FOUND, $className);
            throw new ulfberhtException($errorMsg);
        }
        //return service from service cache if it is there
        if (isset($this->_serviceCache[$className])) {
            return $this->_serviceCache[$className];
        }

        return $this->_resolveService($className);
    }
public function get($className) {
        if (!$this->has($className)) {
            $errorMsg = sprintf(self::ERROR_SERVICE_NOT_FOUND, $className);
            throw new ulfberhtException($errorMsg);
        }
        //return service from service cache if it is there
        if (isset($this->_serviceCache[$className])) {
            return $this->_serviceCache[$className];
        }

        return $this->_resolveService($className);
    }
public function get ( $ className ) { if ( ! $ this -> has ( $ className ) ) { $ errorMsg = sprintf ( self :: ERROR_SERVICE_NOT_FOUND , $ className ) ; throw new ulfberhtException ( $ errorMsg ) ; } //return service from service cache if it is there if ( isset ( $ this -> _serviceCache [ $ className ] ) ) { return $ this -> _serviceCache [ $ className ] ; } return $ this -> _resolveService ( $ className ) ; }
This method is used get the instanciated version of a class that has been
registered in a module.
@param $className string The class you would like to instanciate
@return object The instanciated object based on the $className
This method is used get the instanciated version of a class that has been registered in a module .