@@ -12,6 +12,9 @@ A minimal Symfony application running on Scaleway Serverless Functions through `
12
12
| `GET /counter` | A per-process invocation counter: it keeps growing while a Warm Process serves the Invocations |
13
13
| `POST /` | Where CRON Invocations land, with the trigger's arguments as JSON body |
14
14
15
+`public/hello.php` is a second, function-like Front Controller: a closure taking the `Request` and returning a `Response`, called for every Invocation without any Kernel.
16
+Select it with the `front_controller` runtime option, for instance `APP_RUNTIME_OPTIONS='{"front_controller":"public/hello.php"}' vendor/bin/scaleway-serve`, then `curl 'http://127.0.0.1:8000/?name=Scaleway'`.
17
+
15
18
## Run it locally
16
19
17
20
```sh
@@ -12,6 +12,9 @@ A minimal Symfony application running on Scaleway Serverless Functions through `
12
| `GET /counter` | A per-process invocation counter: it keeps growing while a Warm Process serves the Invocations |
12
| `GET /counter` | A per-process invocation counter: it keeps growing while a Warm Process serves the Invocations |
13
| `POST /` | Where CRON Invocations land, with the trigger's arguments as JSON body |
13
| `POST /` | Where CRON Invocations land, with the trigger's arguments as JSON body |
14
14
15
+`public/hello.php` is a second, function-like Front Controller: a closure taking the `Request` and returning a `Response`, called for every Invocation without any Kernel.
16
+Select it with the `front_controller` runtime option, for instance `APP_RUNTIME_OPTIONS='{"front_controller":"public/hello.php"}' vendor/bin/scaleway-serve`, then `curl 'http://127.0.0.1:8000/?name=Scaleway'`.