Skip to content

Commit

Permalink
修复 ConnectionContextStore 初始化 (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft authored Nov 13, 2023
1 parent c8e8097 commit 62c9d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle(EventParam $e): void
{
RequestContext::set('server', $server);
// @phpstan-ignore-next-line
$server->getBean('ConnectionContextStore')->init();
$server->getBean('ConnectionContextStore');
if (Imi::getClassPropertyValue('ServerGroup', 'status'))
{
/** @var \Imi\Server\Group\Handler\IGroupHandler $groupHandler */
Expand Down
2 changes: 1 addition & 1 deletion src/Server/ConnectionContext/StoreHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class StoreHandler implements IHandler
*/
private ?IHandler $handler = null;

public function init(): void
public function __init(): void
{
$this->getHandler();
}
Expand Down

0 comments on commit 62c9d6f

Please sign in to comment.