Skip to content

Commit bda855d

Browse files
committed
Minor tweak
1 parent 0f790dc commit bda855d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

create_framework/routing.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,8 @@ generate absolute URLs::
220220
use Symfony\Component\Routing\Matcher\CompiledUrlMatcher;
221221
use Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherDumper;
222222

223-
// $compiledRoutes is a plain PHP array that describes
224-
// all routes using a performant data format
225-
// you can and SHOULD cache it, typically by exporting it to a PHP file
223+
// $compiledRoutes is a plain PHP array that describes all routes in a performant data format
224+
// you can (and should) cache it, typically by exporting it to a PHP file
226225
$compiledRoutes = (new CompiledUrlMatcherDumper($routes))->getCompiledRoutes();
227226

228227
$matcher = new CompiledUrlMatcher($compiledRoutes, $context);

0 commit comments

Comments
 (0)