Commit 5ae31dae authored by Fabien Potencier's avatar Fabien Potencier

updated docs and changelog

parent 5aabb465
...@@ -4,6 +4,7 @@ Changelog ...@@ -4,6 +4,7 @@ Changelog
1.2.2 (2014-XX-XX) 1.2.2 (2014-XX-XX)
------------------ ------------------
* added support for the $app argument in application middlewares (to make it consistent with route middlewares)
* added form.types to the Form provider * added form.types to the Form provider
1.2.1 (2014-07-01) 1.2.1 (2014-07-01)
......
...@@ -20,7 +20,7 @@ Before Middleware ...@@ -20,7 +20,7 @@ Before Middleware
A *before* application middleware allows you to tweak the Request before the A *before* application middleware allows you to tweak the Request before the
controller is executed:: controller is executed::
$app->before(function (Request $request) { $app->before(function (Request $request, Application $app) {
// ... // ...
}); });
...@@ -30,7 +30,7 @@ If you want your middleware to be run even if an exception is thrown early on ...@@ -30,7 +30,7 @@ If you want your middleware to be run even if an exception is thrown early on
(on a 404 or 403 error for instance), then, you need to register it as an (on a 404 or 403 error for instance), then, you need to register it as an
early event:: early event::
$app->before(function (Request $request) { $app->before(function (Request $request, Application $app) {
// ... // ...
}, Application::EARLY_EVENT); }, Application::EARLY_EVENT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment