Skip to content

1.1.0

Compare
Choose a tag to compare
@mnapoli mnapoli released this 31 Jul 08:54
· 33 commits to master since this release
  • 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.