Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
5ae31dae
Commit
5ae31dae
authored
Sep 21, 2014
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs and changelog
parent
5aabb465
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
doc/changelog.rst
doc/changelog.rst
+1
-0
doc/middlewares.rst
doc/middlewares.rst
+2
-2
No files found.
doc/changelog.rst
View file @
5ae31dae
...
@@ -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)
...
...
doc/middlewares.rst
View file @
5ae31dae
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment