protected function initializeEach() {
        foreach ($this->providers as $class => &$data) {
            if ( ! array_contains(array_get($data, 'tags'), ProviderTag::INITIALIZED)) {
                $this->configure();

                array_add($data, 'tags', ProviderTag::INITIALIZED);
                $instance = array_get($data, 'instance');

                if (method_exists($instance, 'initialize')) {
                    $this->getProviderInvoker()
                        ->initialize($instance, $this->getSharedArguments());
                }

                $this->initializeEach();
                break;
            }
        }
    }
protected function initializeEach() {
        foreach ($this->providers as $class => &$data) {
            if ( ! array_contains(array_get($data, 'tags'), ProviderTag::INITIALIZED)) {
                $this->configure();

                array_add($data, 'tags', ProviderTag::INITIALIZED);
                $instance = array_get($data, 'instance');

                if (method_exists($instance, 'initialize')) {
                    $this->getProviderInvoker()
                        ->initialize($instance, $this->getSharedArguments());
                }

                $this->initializeEach();
                break;
            }
        }
    }
protected function initializeEach ( ) { foreach ( $ this -> providers as $ class => & $ data ) { if ( ! array_contains ( array_get ( $ data , 'tags' ) , ProviderTag :: INITIALIZED ) ) { $ this -> configure ( ) ; array_add ( $ data , 'tags' , ProviderTag :: INITIALIZED ) ; $ instance = array_get ( $ data , 'instance' ) ; if ( method_exists ( $ instance , 'initialize' ) ) { $ this -> getProviderInvoker ( ) -> initialize ( $ instance , $ this -> getSharedArguments ( ) ) ; } $ this -> initializeEach ( ) ; break ; } } }
Initialize all providers.

@return void
Initialize all providers .