function _initializeServiceOrInstance($inService)
    {
        # Invoke Service Features:
        if ($inService instanceof iServiceFeatureDelegate)
            $inService->delegate($this);


        # initialize with all parent namespaces, from root parent to current last
        $container    = $this;
        $initializers = array();
        while($container->__nestLeft) {
            $container = $container->__nestLeft;
            array_push($initializers, $container->initializer());
        }

        array_push($initializers, $this->initializer());
        foreach($initializers as $initializer)
            $initializer->initialize($inService);

        return $inService;
    }
function _initializeServiceOrInstance($inService)
    {
        # Invoke Service Features:
        if ($inService instanceof iServiceFeatureDelegate)
            $inService->delegate($this);


        # initialize with all parent namespaces, from root parent to current last
        $container    = $this;
        $initializers = array();
        while($container->__nestLeft) {
            $container = $container->__nestLeft;
            array_push($initializers, $container->initializer());
        }

        array_push($initializers, $this->initializer());
        foreach($initializers as $initializer)
            $initializer->initialize($inService);

        return $inService;
    }
function _initializeServiceOrInstance ( $ inService ) { # Invoke Service Features: if ( $ inService instanceof iServiceFeatureDelegate ) $ inService -> delegate ( $ this ) ; # initialize with all parent namespaces, from root parent to current last $ container = $ this ; $ initializers = array ( ) ; while ( $ container -> __nestLeft ) { $ container = $ container -> __nestLeft ; array_push ( $ initializers , $ container -> initializer ( ) ) ; } array_push ( $ initializers , $ this -> initializer ( ) ) ; foreach ( $ initializers as $ initializer ) $ initializer -> initialize ( $ inService ) ; return $ inService ; }
Initialize object with all parent nested initializers
@param mixed $inService instance created with service
@return mixed
Initialize object with all parent nested initializers