protected function resolveProviders()
    {
        foreach ($this->providers as $provider) {
            $resolved = $this->resolveProvider($registered[] = $provider);
            $resolved->register();
            if ($this->registerProvidersOn === 'boot') {
                $this->app->call([$provider, 'boot']);
            }
        }
    }