RouteWithEnv.php 373 B

12345678910111213141516171819
  1. <?php
  2. namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. #[Route(env: 'some-env')]
  5. class RouteWithEnv
  6. {
  7. #[Route(path: '/path', name: 'action')]
  8. public function action()
  9. {
  10. }
  11. #[Route(path: '/path2', name: 'action2', env: 'some-other-env')]
  12. public function action2()
  13. {
  14. }
  15. }