Skip to content

Commit 3950895

Browse files
authored
Update conditions.rst
1 parent 952b2ac commit 3950895

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

routing/conditions.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ variables that are passed into the expression:
8888
Because of this, using the ``condition`` key causes no extra overhead
8989
beyond the time it takes for the underlying PHP to execute.
9090

91-
.. parameters-block:: Injecting parameters
91+
.. _parameters:
9292

93-
You can inject container parameters (e.g. `%kernel.environment%`) into condition, such as `@Route(condition="'%kernel.environment%' in ['dev']")` or any other you want.
93+
Injecting parameters
94+
---------------------
95+
96+
You can inject container parameters (e.g. ``%kernel.environment%``) into condition, such as ``@Route(condition="'%kernel.environment%' in ['dev']")`` or any other you want.

0 commit comments

Comments
 (0)