Cilex\Application::boot PHP Method

boot() public method

Boots the Application by calling boot on every provider added and then subscribe in order to add listeners.
public boot ( ) : void
return void
    public function boot()
    {
        if ($this->booted) {
            return;
        }
        $this->booted = true;
        foreach ($this->providers as $provider) {
            if ($provider instanceof EventListenerProviderInterface) {
                $provider->subscribe($this, $this['dispatcher']);
            }
        }
    }