Mollie\Laravel\MollieServiceProvider::setupConfig PHP Method

setupConfig() protected method

Setup the config.
protected setupConfig ( ) : void
return void
    protected function setupConfig()
    {
        $source = realpath(__DIR__ . '/../config/mollie.php');
        // Check if the application is a Laravel OR Lumen instance to properly merge the configuration file.
        if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
            $this->publishes([$source => config_path('mollie.php')]);
        } elseif ($this->app instanceof LumenApplication) {
            $this->app->configure('mollie');
        }
        $this->mergeConfigFrom($source, 'mollie');
    }