protected function registerServiceProviders(Repository $config)
    {
        foreach ($this->getComponentsFromConfig($config, 'register', getenv('APP_ENV')) as $provider) {
            $this->app->register($provider);

            $config->push('app.providers', $provider);
        }
    }