Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 85a5a4f

Browse files
committed
k
1 parent 460c0a5 commit 85a5a4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Server/PidManagerFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ class PidManagerFactory
99
{
1010
public function __invoke(ContainerInterface $container): PidManager
1111
{
12+
$config = $container->get('config');
13+
1214
return new PidManager(
13-
$container->get('config')->get('swoole_http.server.options.pid_file') ?? sys_get_temp_dir() . '/swoole.pid'
15+
$config->get('swoole_http.server.options.pid_file') ?: sys_get_temp_dir() . '/swoole.pid'
1416
);
1517
}
1618
}

0 commit comments

Comments
 (0)