-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Description
Description
I would like to have it so that the Symfony\Component\Routing\Attribute\Route
parameter $env
can be set as an array
a case for this is that i would like to make a route available for local
and testing
env now i would need 2 routes:
#[Route('/test, name: 'test, env: 'local')]
#[Route('/test', name: 'test-testing', env: 'testing')]
It would be nice if you could set:
#[Route('/test, name: 'test, env: ['local', 'testing'])]
Example
Old:
#[Route('/test, name: 'test, env: 'local')]
#[Route('/test', name: 'test-testing', env: 'testing')]
New:
#[Route('/test, name: 'test, env: ['local', 'testing'])]
GromNaN, santysisi and Sparteeesantysisisantysisi