Overtrue\LaravelWechat\ServiceProvider::register PHP 메소드

register() 공개 메소드

Register the provider.
public register ( ) : void
리턴 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;
        });
    }