Overtrue\LaravelWechat\ServiceProvider::register PHP Method

register() public method

Register the provider.
public register ( ) : void
return void
    public function register()
    {
        $this->app->singleton(['EasyWeChat\\Foundation\\Application' => 'wechat'], function ($app) {
            $app = new Application(config('wechat'));
            if (config('wechat.use_laravel_cache')) {
                $app->cache = new CacheBridge();
            }
            return $app;
        });
    }