public function boot($request = null, $bootLoaders = [])
    {
        // Check if application has already initialized
        if ($this->bootLoaded) {
            return;
        }

        // Boot all the BootLoaders
        foreach ($bootLoaders as $bootLoader) {
            $this->make($bootLoader)->boot($request);
        }

        $this->bootLoaded = true;
    }
public function boot($request = null, $bootLoaders = [])
    {
        // Check if application has already initialized
        if ($this->bootLoaded) {
            return;
        }

        // Boot all the BootLoaders
        foreach ($bootLoaders as $bootLoader) {
            $this->make($bootLoader)->boot($request);
        }

        $this->bootLoaded = true;
    }
public function boot ( $ request = null , $ bootLoaders = [ ] ) { // Check if application has already initialized if ( $ this -> bootLoaded ) { return ; } // Boot all the BootLoaders foreach ( $ bootLoaders as $ bootLoader ) { $ this -> make ( $ bootLoader ) -> boot ( $ request ) ; } $ this -> bootLoaded = true ; }
Initialize the framework with the given BootLoaders.

@param Request $request
@param array   $bootLoaders

@throws \DI\DependencyException
@throws \DI\NotFoundException
@throws \InvalidArgumentException
Initialize the framework with the given BootLoaders .