jdecool/scaleway-runtimepublic Fork
⑂ d996d11
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

docs(adr): note that FrankenPHP serves Response Applications from symfony/runtime 8.1Unverified

Jérémy DECOOL committed 2026-11-13T22:41:09+01:00 Browse files
d996d11 parent: 9c6aeb9
modified docs/adr/0004-call-response-front-controllers-per-invocation.md +1 -1
@@ -1,6 +1,6 @@
11 # A Front Controller returning a Response is called for every Invocation
22
3-SymfonyRuntime calls the Front Controller closure once per process: under FPM that is once per request, but its FrankenPHP worker mode serves the Response built at startup to every request, and resolves a `Request` argument from the globals of the worker's startup.
3+SymfonyRuntime calls the Front Controller closure once per process: under FPM that is once per request, but its FrankenPHP worker mode (symfony/runtime 8.1+) serves the Response built at startup to every request, and resolves a `Request` argument from the globals of the worker's startup.
44 In a Warm Process that would freeze the Response (a `StreamedResponse` would even be empty from its second sending on) and make a `Request` argument meaningless.
55 We instead call the closure again for every Invocation, a `Request` argument receiving the Request built from the Invocation's Event, which keeps the FPM semantics and makes `fn (Request $request): Response` a function-like Front Controller.
66
@@ -1,6 +1,6 @@
1 # A Front Controller returning a Response is called for every Invocation1 # A Front Controller returning a Response is called for every Invocation
2 2
3-SymfonyRuntime calls the Front Controller closure once per process: under FPM that is once per request, but its FrankenPHP worker mode serves the Response built at startup to every request, and resolves a `Request` argument from the globals of the worker's startup.3+SymfonyRuntime calls the Front Controller closure once per process: under FPM that is once per request, but its FrankenPHP worker mode (symfony/runtime 8.1+) serves the Response built at startup to every request, and resolves a `Request` argument from the globals of the worker's startup.
4 In a Warm Process that would freeze the Response (a `StreamedResponse` would even be empty from its second sending on) and make a `Request` argument meaningless.4 In a Warm Process that would freeze the Response (a `StreamedResponse` would even be empty from its second sending on) and make a `Request` argument meaningless.
5 We instead call the closure again for every Invocation, a `Request` argument receiving the Request built from the Invocation's Event, which keeps the FPM semantics and makes `fn (Request $request): Response` a function-like Front Controller.5 We instead call the closure again for every Invocation, a `Request` argument receiving the Request built from the Invocation's Event, which keeps the FPM semantics and makes `fn (Request $request): Response` a function-like Front Controller.
6 6