File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace Overtrue \LaravelWechat ;
44
5- use EasyWeChat \Foundation \Application ;
5+ use EasyWeChat \Foundation \Application as EasyWeChatApplication ;
66use Illuminate \Foundation \Application as LaravelApplication ;
77use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
88use Laravel \Lumen \Application as LumenApplication ;
@@ -59,7 +59,7 @@ protected function setupConfig()
5959 */
6060 public function register ()
6161 {
62- $ this ->app ->singleton (\ EasyWeChat \ Foundation \Application ::class, function ($ app ) {
62+ $ this ->app ->singleton (EasyWeChatApplication ::class, function ($ app ) {
6363 $ app = new Application (config ('wechat ' ));
6464
6565 if (config ('wechat.use_laravel_cache ' )) {
@@ -68,6 +68,9 @@ public function register()
6868
6969 return $ app ;
7070 });
71+
72+ $ this ->app ->alias (EasyWeChatApplication::class, 'wechat ' );
73+ $ this ->app ->alias (EasyWeChatApplication::class, 'easywechat ' );
7174 }
7275
7376 /**
@@ -77,7 +80,7 @@ public function register()
7780 */
7881 public function provides ()
7982 {
80- return ['wechat ' , ' EasyWeChat \\ Foundation \\ Application ' ];
83+ return ['wechat ' , EasyWeChatApplication::class ];
8184 }
8285
8386 /**
You can’t perform that action at this time.
0 commit comments