Skip to content

Commit e2ec11a

Browse files
authored
support DI
fix #1
1 parent 2d7d301 commit e2ec11a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config/plugin/webman/gateway-worker/process.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'handler' => Gateway::class,
1010
'listen' => 'websocket://0.0.0.0:7272',
1111
'count' => cpu_count(),
12-
'constructor' => [[
12+
'constructor' => ['config' => [
1313
'lanIp' => '127.0.0.1',
1414
'startPort' => 2300,
1515
'pingInterval' => 25,
@@ -21,7 +21,7 @@
2121
'worker' => [
2222
'handler' => BusinessWorker::class,
2323
'count' => cpu_count()*2,
24-
'constructor' => [[
24+
'constructor' => ['config' => [
2525
'eventHandler' => plugin\webman\gateway\Events::class,
2626
'name' => 'ChatBusinessWorker',
2727
'registerAddress' => '127.0.0.1:1236',
@@ -33,4 +33,4 @@
3333
'count' => 1, // Must be 1
3434
'constructor' => []
3535
],
36-
];
36+
];

0 commit comments

Comments
 (0)