public function bootstrapWith(array $bootstraps): void
    {
        foreach ($bootstraps as $bootstrap) {
            $this->callCallbacks(
                $this->bootstrappingCallbacks,
                $this->kernel,
                'bootstrapping: ',
                $bootstrap
            );

            $bootstrap::bootstrap($this->kernel);

            $this->callCallbacks(
                $this->bootstrappedCallbacks,
                $this->kernel,
                'bootstrapped: ',
                $bootstrap
            );
        }

        $this->hasBeenBootstrapped = true;
    }
public function bootstrapWith(array $bootstraps): void
    {
        foreach ($bootstraps as $bootstrap) {
            $this->callCallbacks(
                $this->bootstrappingCallbacks,
                $this->kernel,
                'bootstrapping: ',
                $bootstrap
            );

            $bootstrap::bootstrap($this->kernel);

            $this->callCallbacks(
                $this->bootstrappedCallbacks,
                $this->kernel,
                'bootstrapped: ',
                $bootstrap
            );
        }

        $this->hasBeenBootstrapped = true;
    }
public function bootstrapWith ( array $ bootstraps ) : void { foreach ( $ bootstraps as $ bootstrap ) { $ this -> callCallbacks ( $ this -> bootstrappingCallbacks , $ this -> kernel , 'bootstrapping: ' , $ bootstrap ) ; $ bootstrap :: bootstrap ( $ this -> kernel ) ; $ this -> callCallbacks ( $ this -> bootstrappedCallbacks , $ this -> kernel , 'bootstrapped: ' , $ bootstrap ) ; } $ this -> hasBeenBootstrapped = true ; }
Run the given array of bootstrap classes.

@param array $bootstraps

@return void
Run the given array of bootstrap classes .