8000 Update custom_route_loader.rst · fabpot/symfony-docs@df16298 · GitHub
[go: up one dir, main page]

Skip to content

Commit df16298

Browse files
mmoreramweaverryan
authored andcommitted
Update custom_route_loader.rst
$loaded variables doesn't seem to be useful in this code, as no one is setting as true in any moment.
1 parent ab4788d commit df16298

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cookbook/routing/custom_route_loader.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ type you want. The resource name itself is not actually used in the example::
9595
// add the new route to the route collection:
9696
$routeName = 'extraRoute';
9797
$routes->add($routeName, $route);
98+
99+
$this->loaded = true;
98100

99101
return $routes;
100102
}

0 commit comments

Comments
 (0)
0