You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: routing/conditions.rst
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,3 +87,7 @@ variables that are passed into the expression:
87
87
88
88
Because of this, using the ``condition`` key causes no extra overhead
89
89
beyond the time it takes for the underlying PHP to execute.
90
+
91
+
.. parameters-block:: Injecting parameters
92
+
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.
0 commit comments