Skip to content

Commit 72d970e

Browse files
authored
follow your suggestion.
Yes, private would be more secure. And add the comment to construct funtion.
1 parent 05235bf commit 72d970e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ class OAuthAuthenticate
1515
/**
1616
* Use Service Container would be much artisan.
1717
*/
18-
public $wechat;
19-
18+
private $wechat;
19+
20+
/**
21+
* Inject the wechat service.
22+
*/
2023
public function __construct(Application $wechat)
2124
{
2225
$this->wechat = $wechat;

0 commit comments

Comments
 (0)