Commit f263e64a authored by Fabien Potencier's avatar Fabien Potencier

fixed markup in the doc

parent 9d8b3f5f
...@@ -355,7 +355,7 @@ through before and after filters. All you need to do is pass a closure:: ...@@ -355,7 +355,7 @@ through before and after filters. All you need to do is pass a closure::
}); });
The before filter has access to the current Request, and can short-circuit the The before filter has access to the current Request, and can short-circuit the
whole rendering by returning a Response: whole rendering by returning a Response::
$app->before(function (Request $request) { $app->before(function (Request $request) {
// redirect the user to the login screen if access to the Resource is protected // redirect the user to the login screen if access to the Resource is protected
...@@ -364,7 +364,7 @@ whole rendering by returning a Response: ...@@ -364,7 +364,7 @@ whole rendering by returning a Response:
} }
}); });
The after filter has access to the Request and the Response: The after filter has access to the Request and the Response::
$app->after(function (Request $request, Response $response) { $app->after(function (Request $request, Response $response) {
// tweak the Response // tweak the Response
......
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