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
            ]);
        }
    }