private function dispatchEagerly(array $bootstrapperClasses, bool $run)
    {
        foreach ($bootstrapperClasses as $bootstrapperClass) {
            /** @var Bootstrapper $bootstrapper */
            $bootstrapper = $this->bootstrapperResolver->resolve($bootstrapperClass);
            $this->bootstrapperObjects[] = $bootstrapper;
            $bootstrapper->registerBindings($this->container);
        }

        if ($run) {
            foreach ($this->bootstrapperObjects as $bootstrapper) {
                $this->container->callMethod($bootstrapper, 'run', [], true);
            }
        }
    }
private function dispatchEagerly(array $bootstrapperClasses, bool $run)
    {
        foreach ($bootstrapperClasses as $bootstrapperClass) {
            /** @var Bootstrapper $bootstrapper */
            $bootstrapper = $this->bootstrapperResolver->resolve($bootstrapperClass);
            $this->bootstrapperObjects[] = $bootstrapper;
            $bootstrapper->registerBindings($this->container);
        }

        if ($run) {
            foreach ($this->bootstrapperObjects as $bootstrapper) {
                $this->container->callMethod($bootstrapper, 'run', [], true);
            }
        }
    }
private function dispatchEagerly ( array $ bootstrapperClasses , bool $ run ) { foreach ( $ bootstrapperClasses as $ bootstrapperClass ) { /** @var Bootstrapper $bootstrapper */ $ bootstrapper = $ this -> bootstrapperResolver -> resolve ( $ bootstrapperClass ) ; $ this -> bootstrapperObjects [ ] = $ bootstrapper ; $ bootstrapper -> registerBindings ( $ this -> container ) ; } if ( $ run ) { foreach ( $ this -> bootstrapperObjects as $ bootstrapper ) { $ this -> container -> callMethod ( $ bootstrapper , 'run' , [ ] , true ) ; } } }
Dispatches the registry eagerly

@param array $bootstrapperClasses The list of bootstrapper classes to dispatch
@param bool $run Whether or not to run the bootstrapper (deprecated)
@throws RuntimeException Thrown if there was a problem dispatching the bootstrappers
Dispatches the registry eagerly