Commit c1cc4cee authored by Fabien Potencier's avatar Fabien Potencier

minor #1096 Update usage.rst (parhamdoustdar)

This PR was submitted for the master branch but it was merged into the 1.2 branch instead (closes #1096).

Discussion
----------

Update usage.rst

Fixed a small grammatical error.

Commits
-------

b0def74c Update usage.rst
parents 01e359a5 b0def74c
...@@ -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