We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399cd73 commit 1d2d9c3Copy full SHA for 1d2d9c3
routing.rst
@@ -1243,8 +1243,8 @@ to get the request and its attributes:
1243
1244
.. code-block:: twig
1245
1246
- {% set route_name = app.request.attributes('_route') %}
1247
- {% set route_parameters = app.request.attributes('_route_params') %}
+ {% set route_name = app.request.attributes.get('_route') %}
+ {% set route_parameters = app.request.attributes.get('_route_params') %}
1248
1249
{# use this to get all the available attributes (not only routing ones) #}
1250
{% set all_attributes = app.request.attributes.all %}
0 commit comments