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.
env
1 parent 6b6a678 commit 4bce277Copy full SHA for 4bce277
routing.rst
@@ -274,6 +274,13 @@ given value:
274
{
275
// ...
276
}
277
+
278
+ // You can also pass an array of environments
279
+ #[Route('/tools', name: 'tools', env: ['dev', 'test'])]
280
+ public function developerTools(): Response
281
+ {
282
+ // ...
283
+ }
284
285
286
.. code-block:: yaml
@@ -312,6 +319,10 @@ given value:
312
319
313
320
};
314
321
322
+.. versionadded:: 7.4
323
324
+ The ability to pass an array of environments to the ``env`` argument was introduced in Symfony 7.4.
325
315
326
.. _routing-matching-expressions:
316
327
317
328
Matching Expressions
0 commit comments