Skip to content

Commit c242ac6

Browse files
committed
version
1 parent b03a15a commit c242ac6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keywords": ["wechat", "weixin","laravel", "sdk"],
55
"require": {
66
"laravel/framework": ">=5.0.0",
7-
"overtrue/wechat": ">1.0.1"
7+
"overtrue/wechat": "~2.0"
88
},
99
"autoload": {
1010
"psr-4": {

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function register()
5858
});
5959

6060
foreach ($this->services as $alias => $service) {
61-
$this->app->singleton($service, function($app){
61+
$this->app->singleton($service, function($app) use ($service){
6262
return new $service(config('wechat.appId'), config('wechat.secret'));
6363
});
6464

0 commit comments

Comments
 (0)