LocalizedMethodActionControllers.php 396 B

12345678910111213141516171819
  1. <?php
  2. namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. #[Route(path: ['en' => '/the/path', 'nl' => '/het/pad'])]
  5. class LocalizedMethodActionControllers
  6. {
  7. #[Route(name: 'post', methods: ['POST'])]
  8. public function post()
  9. {
  10. }
  11. #[Route(name: 'put', methods: ['PUT'])]
  12. public function put()
  13. {
  14. }
  15. }