22
33namespace Overtrue \LaravelWechat ;
44
5- use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
65use EasyWeChat \Foundation \Application ;
76use Illuminate \Foundation \Application as LaravelApplication ;
7+ use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
88use Laravel \Lumen \Application as LumenApplication ;
99
1010class ServiceProvider extends LaravelServiceProvider
1111{
1212 /**
13- * 延迟加载
13+ * 延迟加载.
1414 *
15- * @var boolean
15+ * @var bool
1616 */
1717 protected $ defer = true ;
1818
@@ -33,11 +33,11 @@ public function boot()
3333 */
3434 protected function setupConfig ()
3535 {
36- $ source = realpath (__DIR__ . '/config.php ' );
37-
36+ $ source = realpath (__DIR__ . '/config.php ' );
37+
3838 if ($ this ->app instanceof LaravelApplication && $ this ->app ->runningInConsole ()) {
3939 $ this ->publishes ([
40- $ source => config_path ('wechat.php ' )
40+ $ source => config_path ('wechat.php ' ),
4141 ]);
4242 } elseif ($ this ->app instanceof LumenApplication) {
4343 $ this ->app ->configure ('wechat ' );
@@ -52,7 +52,7 @@ protected function setupConfig()
5252 */
5353 public function register ()
5454 {
55- $ this ->app ->singleton (['EasyWeChat \\Foundation \\Application ' => 'wechat ' ], function ($ app ){
55+ $ this ->app ->singleton (['EasyWeChat \\Foundation \\Application ' => 'wechat ' ], function ($ app ) {
5656 $ app = new Application (config ('wechat ' ));
5757
5858 if (config ('wechat.use_laravel_cache ' )) {
0 commit comments