File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1603,15 +1603,14 @@ information in a controller via the ``Request`` object::
16031603 }
16041604 }
16051605
1606- You can get this information in services too injecting the ``request_stack ``
1607- service to :doc: `get the Request object in a service </service_container/request >`.
1608- In templates, use the :ref: `Twig global app variable <twig-app-variable >` to get
1606+ To get this information in a service, see :doc: `/service_container/request `.
1607+ In templates, you can use the :ref: `Twig global app variable <twig-app-variable >` to get
16091608the current route and its attributes:
16101609
16111610.. code-block :: twig
16121611
1613- {% set route_name = app.current_route %}
1614- {% set route_parameters = app.current_route_parameters %}
1612+ {% app.current_route %}
1613+ {% app.current_route_parameters %}
16151614
16161615 .. versionadded :: 6.2
16171616
You can’t perform that action at this time.
0 commit comments