Overtrue\LaravelWechat\ServiceProvider::setupConfig PHP Method

setupConfig() protected method

Setup the config.
protected setupConfig ( ) : void
return void
    protected function setupConfig()
    {
        $source = realpath(__DIR__ . '/config.php');
        if ($this->app instanceof LaravelApplication) {
            if ($this->app->runningInConsole()) {
                $this->publishes([$source => config_path('wechat.php')]);
            }
            // 创建模拟授权
            $this->setUpMockAuthUser();
        } elseif ($this->app instanceof LumenApplication) {
            $this->app->configure('wechat');
        }
        $this->mergeConfigFrom($source, 'wechat');
    }