Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 82687eb

Browse files
authoredOct 24, 2021
Clear auth instance on every requests
Currenly auth instance is resseting after swoole reload/restart, and after user login - it shares auth across all other requests. This commit fixes: 1) Logout user after swoole reload 2) Share auth instance across all requests
1 parent 29c6bfa commit 82687eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎config/swoole_http.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
'pre_resolved' => [
8282
'view', 'files', 'session', 'session.store', 'routes',
8383
'db', 'db.factory', 'cache', 'cache.store', 'config', 'cookie',
84-
'encrypter', 'hash', 'router', 'translator', 'url', 'log', 'auth',
84+
'encrypter', 'hash', 'router', 'translator', 'url', 'log',
8585
],
8686

8787
/*
@@ -90,7 +90,7 @@
9090
|--------------------------------------------------------------------------
9191
*/
9292
'instances' => [
93-
//
93+
'auth',
9494
],
9595

9696
/*

0 commit comments

Comments
 (0)
This repository has been archived.