12345678910111213141516171819 |
- <?php
- namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
- use Symfony\Component\Routing\Annotation\Route;
- #[Route(env: 'some-env')]
- class RouteWithEnv
- {
- #[Route(path: '/path', name: 'action')]
- public function action()
- {
- }
- #[Route(path: '/path2', name: 'action2', env: 'some-other-env')]
- public function action2()
- {
- }
- }
|