Commit b0def74c authored by Parham Doustdar's avatar Parham Doustdar Committed by Fabien Potencier

Update usage.rst

parent 01e359a5
...@@ -262,7 +262,7 @@ closure arguments match the names of the variable parts:: ...@@ -262,7 +262,7 @@ closure arguments match the names of the variable parts::
// ... // ...
}); });
While it's not recommend, you could also do this (note the switched While it's not recommended, you could also do this (note the switched
arguments):: arguments)::
$app->get('/blog/{postId}/{commentId}', function ($commentId, $postId) { $app->get('/blog/{postId}/{commentId}', function ($commentId, $postId) {
...@@ -284,8 +284,8 @@ You can also ask for the current Request and Application objects:: ...@@ -284,8 +284,8 @@ You can also ask for the current Request and Application objects::
// ... // ...
}); });
Route Variables Converters Route Variable Converters
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
Before injecting the route variables into the controller, you can apply some Before injecting the route variables into the controller, you can apply some
converters:: converters::
......
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