public function boot()
    {
        if ($this->booted) {
            return;
        }

        $this->booted = true;

        foreach ($this->providers as $provider) {
            if ($provider instanceof EventListenerProviderInterface) {
                $provider->subscribe($this, $this['dispatcher']);
            }

            if ($provider instanceof BootableProviderInterface) {
                $provider->boot($this);
            }
        }
    }
public function boot()
    {
        if ($this->booted) {
            return;
        }

        $this->booted = true;

        foreach ($this->providers as $provider) {
            if ($provider instanceof EventListenerProviderInterface) {
                $provider->subscribe($this, $this['dispatcher']);
            }

            if ($provider instanceof BootableProviderInterface) {
                $provider->boot($this);
            }
        }
    }
public function boot ( ) { if ( $ this -> booted ) { return ; } $ this -> booted = true ; foreach ( $ this -> providers as $ provider ) { if ( $ provider instanceof EventListenerProviderInterface ) { $ provider -> subscribe ( $ this , $ this [ 'dispatcher' ] ) ; } if ( $ provider instanceof BootableProviderInterface ) { $ provider -> boot ( $ this ) ; } } }
Boots all service providers.

This method is automatically called by handle(), but you can use it
to boot all service providers when not handling a request.
Boots all service providers .