private function _instanciateService($className, $resolvedDependencies) {
        $service = $this->_services[$className];
        switch ($service->constructorType) {
            case (serviceWrapper::SINGLETON_CONSTRUCTOR):
                if (!isset($this->_serviceCache[$className])) {
                    $classDef = $service->classDef;
                    $this->_serviceCache[$className] = $classDef->newInstanceArgs($resolvedDependencies);
                }
                return $this->_serviceCache[$className];
            case (serviceWrapper::FACTORY_CONSTRUCTOR):
                $classDef = $service->classDef;
                return $classDef->newInstanceArgs($resolvedDependencies);
        }
    }
private function _instanciateService($className, $resolvedDependencies) {
        $service = $this->_services[$className];
        switch ($service->constructorType) {
            case (serviceWrapper::SINGLETON_CONSTRUCTOR):
                if (!isset($this->_serviceCache[$className])) {
                    $classDef = $service->classDef;
                    $this->_serviceCache[$className] = $classDef->newInstanceArgs($resolvedDependencies);
                }
                return $this->_serviceCache[$className];
            case (serviceWrapper::FACTORY_CONSTRUCTOR):
                $classDef = $service->classDef;
                return $classDef->newInstanceArgs($resolvedDependencies);
        }
    }
private function _instanciateService ( $ className , $ resolvedDependencies ) { $ service = $ this -> _services [ $ className ] ; switch ( $ service -> constructorType ) { case ( serviceWrapper :: SINGLETON_CONSTRUCTOR ) : if ( ! isset ( $ this -> _serviceCache [ $ className ] ) ) { $ classDef = $ service -> classDef ; $ this -> _serviceCache [ $ className ] = $ classDef -> newInstanceArgs ( $ resolvedDependencies ) ; } return $ this -> _serviceCache [ $ className ] ; case ( serviceWrapper :: FACTORY_CONSTRUCTOR ) : $ classDef = $ service -> classDef ; return $ classDef -> newInstanceArgs ( $ resolvedDependencies ) ; } }
This method is used to instanciate a service based on its instanciation plan.
This method is used to instanciate a service based on its instanciation plan .