1.1.0
-
The request object can now be injected in controllers by adding a parameter named
$request
(type-hint is optional)$app->post('/register/{name}', function (Request $request, Mailer $mailer) { // ... });
-
Query string parameters and POST parameters where previously injected in controllers (if a parameter had the same name). This was bad design, very unconventional and surprising behavior (probably unused) and creates a lot of potential for applications to break, so this has been removed. Inject the whole request to handle those cases.