Commit 2b303b4d authored by Fabien Potencier's avatar Fabien Potencier

minor #1355 Fixed var name in organizing controllers (ragboyjr)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Fixed var name in organizing controllers

Updated the var name in the organizing controllers documenation
in order be consistent with the variable naming throughout the
code sample.
Signed-off-by: default avatarRJ Garcia <rj@bighead.net>

Commits
-------

f4a80afb Fixed var name in organizing controllers
parents ec25d343 f4a80afb
...@@ -26,9 +26,9 @@ group them logically:: ...@@ -26,9 +26,9 @@ group them logically::
$app->mount('/forum', $forum); $app->mount('/forum', $forum);
// define controllers for a admin // define controllers for a admin
$app->mount('/admin', function ($api) { $app->mount('/admin', function ($admin) {
// recursively mount // recursively mount
$api->mount('/blog', function ($user) { $admin->mount('/blog', function ($user) {
$user->get('/', function () { $user->get('/', function () {
return 'Admin Blog home page'; return 'Admin Blog home page';
}); });
......
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