We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72252ba + cc2c3b8 commit 90a2da1Copy full SHA for 90a2da1
src/ServiceProvider.php
@@ -64,11 +64,12 @@ protected function setupConfig()
64
*/
65
public function register()
66
{
67
- $this->app->singleton(EasyWeChatApplication::class, function ($app) {
+ $this->app->singleton(EasyWeChatApplication::class, function ($laravelApp) {
68
$app = new EasyWeChatApplication(config('wechat'));
69
if (config('wechat.use_laravel_cache')) {
70
$app->cache = new CacheBridge();
71
}
72
+ $app->server->setRequest($laravelApp['request']);
73
74
return $app;
75
});
0 commit comments