MethodActionControllers.php 365 B

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