Skip to content

Commit 94d4fd3

Browse files
committed
oauth 中间件依赖注入问题
1 parent 0532f45 commit 94d4fd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Overtrue\LaravelWeChat\Middleware;
1313

1414
use Closure;
15+
use EasyWeChat\OfficialAccount\Application;
1516
use Event;
1617
use Log;
1718
use Overtrue\LaravelWeChat\Events\WeChatUserAuthorized;
@@ -28,8 +29,10 @@ class OAuthAuthenticate
2829

2930
/**
3031
* Inject the wechat service.
32+
*
33+
* @param \EasyWeChat\OfficialAccount\Application $wechat
3134
*/
32-
public function __construct($wechat)
35+
public function __construct(Application $wechat)
3336
{
3437
$this->wechat = $wechat;
3538
}

0 commit comments

Comments
 (0)