private function bootProviders() { foreach ($this->providers as $provider) { if ($provider instanceof Closure) { $provider($this); } else { (new $provider($this))->boot(); } } }