Skip to content

Commit f41c55d

Browse files
Apply suggestions from code review
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
1 parent d38cc59 commit f41c55d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/worker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ $handler = static function () use ($workerServer) {
180180
// ...
181181
```
182182

183-
## Worker mode for extension developers
183+
## Worker Mode for Extension Developers
184184

185-
### Request lifecycle
185+
### Request Lifecycle
186186

187187
In worker mode FrankenPHP only goes through `RINIT` and `RSHUTDOWN` once per worker thread. In case you need to observe a worker request start and end, you can not rely on `RINIT` and `RSHUTDOWN` phases of the extension lifecycle. Instead, you are able to hook into the `sapi_module.activate` / `sapi_module.deactivate` function pointers to achieve the same effect (you can validate that the current SAPI is FrankenPHP by checking the value of `sapi_module.name`).
188188

0 commit comments

Comments
 (0)