RouteWithEnv.php 401 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Symfony\Component\Routing\Tests\Fixtures\AnnotationFixtures;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. /**
  5. * @Route(env="some-env")
  6. */
  7. class RouteWithEnv
  8. {
  9. /**
  10. * @Route("/path", name="action")
  11. */
  12. public function action()
  13. {
  14. }
  15. /**
  16. * @Route("/path2", name="action2", env="some-other-env")
  17. */
  18. public function action2()
  19. {
  20. }
  21. }