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 2
2
3
3
namespace Overtrue \LaravelWechat ;
4
4
5
- use EasyWeChat \Foundation \Application ;
5
+ use EasyWeChat \Foundation \Application as EasyWeChatApplication ;
6
6
use Illuminate \Foundation \Application as LaravelApplication ;
7
7
use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
8
8
use Laravel \Lumen \Application as LumenApplication ;
@@ -59,7 +59,7 @@ protected function setupConfig()
59
59
*/
60
60
public function register ()
61
61
{
62
- $ this ->app ->singleton (\ EasyWeChat \ Foundation \Application ::class, function ($ app ) {
62
+ $ this ->app ->singleton (EasyWeChatApplication ::class, function ($ app ) {
63
63
$ app = new Application (config ('wechat ' ));
64
64
65
65
if (config ('wechat.use_laravel_cache ' )) {
@@ -68,6 +68,9 @@ public function register()
68
68
69
69
return $ app ;
70
70
});
71
+
72
+ $ this ->app ->alias (EasyWeChatApplication::class, 'wechat ' );
73
+ $ this ->app ->alias (EasyWeChatApplication::class, 'easywechat ' );
71
74
}
72
75
73
76
/**
@@ -77,7 +80,7 @@ public function register()
77
80
*/
78
81
public function provides ()
79
82
{
80
- return ['wechat ' , ' EasyWeChat \\ Foundation \\ Application ' ];
83
+ return ['wechat ' , EasyWeChatApplication::class ];
81
84
}
82
85
83
86
/**
You can’t perform that action at this time.
0 commit comments