Skip to content

Commit 90a2da1

Browse files
authored
Merge pull request #70 from Garveens-Forks/master
request injection
2 parents 72252ba + cc2c3b8 commit 90a2da1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ protected function setupConfig()
6464
*/
6565
public function register()
6666
{
67-
$this->app->singleton(EasyWeChatApplication::class, function ($app) {
67+
$this->app->singleton(EasyWeChatApplication::class, function ($laravelApp) {
6868
$app = new EasyWeChatApplication(config('wechat'));
6969
if (config('wechat.use_laravel_cache')) {
7070
$app->cache = new CacheBridge();
7171
}
72+
$app->server->setRequest($laravelApp['request']);
7273

7374
return $app;
7475
});

0 commit comments

Comments
 (0)