Inject: URL param only

Route: $app->route('/demo/inject/url/{id}', function ($id) { ... }). The framework injected $id by name from the URL pattern. Nothing else was injected.

Live URL

GET /demo/inject/url/42

Response

Status
200 OK
Content-Type
application/json
{
    "id": "42",
    "injected": [
        "id"
    ],
    "note": "URL param only"
}