Skip to content

Commit 62c9d6f

Browse files
authored
修复 ConnectionContextStore 初始化 (#642)
1 parent c8e8097 commit 62c9d6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Components/swoole/src/Server/ConnectionContext/Listener/AppInit.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function handle(EventParam $e): void
4444
{
4545
RequestContext::set('server', $server);
4646
// @phpstan-ignore-next-line
47-
$server->getBean('ConnectionContextStore')->init();
47+
$server->getBean('ConnectionContextStore');
4848
if (Imi::getClassPropertyValue('ServerGroup', 'status'))
4949
{
5050
/** @var \Imi\Server\Group\Handler\IGroupHandler $groupHandler */

src/Server/ConnectionContext/StoreHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class StoreHandler implements IHandler
3232
*/
3333
private ?IHandler $handler = null;
3434

35-
public function init(): void
35+
public function __init(): void
3636
{
3737
$this->getHandler();
3838
}

0 commit comments

Comments
 (0)