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