Inject: $id + $request + $response

Three-name injection: function ($id, $request, $response). Order does not matter — injection is by parameter name. Try adding ?foo=bar&debug=1 to the URL and reload.

Live URL

GET /demo/inject/all/42 · try ?foo=bar

Response

Status
200 OK
Content-Type
application/json
{
    "id": "42",
    "method": "GET",
    "query": [],
    "injected": [
        "id",
        "request",
        "response"
    ]
}