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.
#[Route]
1 parent 6b6a678 commit ebe17dfCopy full SHA for ebe17df
routing.rst
@@ -269,11 +269,18 @@ given value:
269
270
class DefaultController extends AbstractController
271
{
272
- #[Route('/tools', name: 'tools', env: 'dev')]
+ // Using the Route attribute, you can specify multiple environments
273
+ #[Route('/tools', name: 'tools', env: ['test', 'dev'])]
274
public function developerTools(): Response
275
276
// ...
277
}
278
+
279
+ #[Route('/test', name: 'test', env: 'test')]
280
+ public function testScenario(): Response
281
+ {
282
+ // ...
283
+ }
284
285
286
.. code-block:: yaml
0 commit comments