protected function overrideConfig(array $override, Repository $config, Settings $settings, Dispatcher $dispatcher)
    {
        foreach ($override as $key => $settingKey) {
            $configKey = is_string($key) ? $key : $settingKey;

            $dispatcher->fire("settings.overriding: {$configKey}", [$configKey, $settingKey]);

            $settingValue = $settings->get($settingKey);
            $configValue = $config->get($configKey);

            $config->set($configKey, $settingValue);

            $dispatcher->fire("settings.override: {$configKey}", [
                $configKey, $configValue, $settingKey, $settingValue
            ]);
        }
    }
protected function overrideConfig(array $override, Repository $config, Settings $settings, Dispatcher $dispatcher)
    {
        foreach ($override as $key => $settingKey) {
            $configKey = is_string($key) ? $key : $settingKey;

            $dispatcher->fire("settings.overriding: {$configKey}", [$configKey, $settingKey]);

            $settingValue = $settings->get($settingKey);
            $configValue = $config->get($configKey);

            $config->set($configKey, $settingValue);

            $dispatcher->fire("settings.override: {$configKey}", [
                $configKey, $configValue, $settingKey, $settingValue
            ]);
        }
    }
protected function overrideConfig ( array $ override , Repository $ config , Settings $ settings , Dispatcher $ dispatcher ) { foreach ( $ override as $ key => $ settingKey ) { $ configKey = is_string ( $ key ) ? $ key : $ settingKey ; $ dispatcher -> fire ( "settings.overriding: {$configKey}" , [ $ configKey , $ settingKey ] ) ; $ settingValue = $ settings -> get ( $ settingKey ) ; $ configValue = $ config -> get ( $ configKey ) ; $ config -> set ( $ configKey , $ settingValue ) ; $ dispatcher -> fire ( "settings.override: {$configKey}" , [ $ configKey , $ configValue , $ settingKey , $ settingValue ] ) ; } }
Override give config values from persistent setting storage.

@param array $override
@param \Illuminate\Contracts\Config\Repository $config
@param \Krucas\Settings\Settings $settings
@param \Illuminate\Contracts\Events\Dispatcher $dispatcher
Override give config values from persistent setting storage .