protected function overwriteAppConfig()
    {
        $this->config = $this->app->make('config');
        $editor = $this->resolveEditor();
        $editorConfig = $this->config->get('whoops-editor.editors.' . $editor);
        if (!$editorConfig) {
            $this->overwriteAppEditor($editor);

            return;
        }

        $this->overwriteAppEditor(function ($filePath, $line) use ($editorConfig) {
            $filePath = $this->resolveFilePath($filePath);

            if (is_string($editorConfig)) {
                return $this->buildUri($editorConfig, $filePath, $line);
            }

            $editorConfig['url'] = $this->buildUri($editorConfig['url'], $filePath, $line);

            return $editorConfig;
        });
    }