Skip to content

Commit d587fbb

Browse files
committed
Fix variable name
1 parent cd01a9f commit d587fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ gives you access to these variables:
377377
``app.token``
378378
A :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface`
379379
object representing the security token.
380-
``app.current_route_name``
380+
``app.current_route``
381381
The name of the route associated to the current request or ``null`` if no
382382
request is available (equivalent to ``app.request.attributes.get('_route')``)
383383
``app.current_route_parameters``
@@ -386,7 +386,7 @@ gives you access to these variables:
386386

387387
.. versionadded:: 6.2
388388

389-
The ``app.current_route_name`` and ``app.current_route_parameters`` variables
389+
The ``app.current_route`` and ``app.current_route_parameters`` variables
390390
were introduced in Symfony 6.2.
391391

392392
In addition to the global ``app`` variable injected by Symfony, you can also

0 commit comments

Comments
 (0)