Skip to content

Commit c53d25d

Browse files
authored
Merge pull request #37 from hyperf/Reasno-patch-1
Add onWorkerExit, remove OnBeforeStart
2 parents 4fb5626 + 88841fa commit c53d25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/autoload/server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
'buffer_output_size' => 2 * 1024 * 1024,
4040
],
4141
'callbacks' => [
42-
SwooleEvent::ON_BEFORE_START => [Hyperf\Framework\Bootstrap\ServerStartCallback::class, 'beforeStart'],
4342
SwooleEvent::ON_WORKER_START => [Hyperf\Framework\Bootstrap\WorkerStartCallback::class, 'onWorkerStart'],
4443
SwooleEvent::ON_PIPE_MESSAGE => [Hyperf\Framework\Bootstrap\PipeMessageCallback::class, 'onPipeMessage'],
44+
SwooleEvent::ON_WORKER_EXIT => [Hyperf\Framework\Bootstrap\WorkerExitCallback::class, 'onWorkerExit'],
4545
],
4646
];

0 commit comments

Comments
 (0)