src/Phossa/Di/Container.php
protected function serviceFromDefinition($id, $args)
    {
        // create the service object
        $service = $this->createServiceObject($id, $args);

        // run predefined methods if any
        $this->runDefinedMethods($id, $service);

        // decorate the service if DecorateExtension loaded
        $this->decorateService($service);

        return $service;
    }
protected function serviceFromDefinition($id, $args)
    {
        // create the service object
        $service = $this->createServiceObject($id, $args);

        // run predefined methods if any
        $this->runDefinedMethods($id, $service);

        // decorate the service if DecorateExtension loaded
        $this->decorateService($service);

        return $service;
    }
protected function serviceFromDefinition ( $ id , $ args ) { // create the service object $ service = $ this -> createServiceObject ( $ id , $ args ) ; // run predefined methods if any $ this -> runDefinedMethods ( $ id , $ service ) ; // decorate the service if DecorateExtension loaded $ this -> decorateService ( $ service ) ; return $ service ; }
Check circular, create service and decorate service

@param  string $id service id
@param  array $args constructor arguments
@return object
@access protected
Check circular create service and decorate service