Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 42ef873

Browse files
Merge pull request #811 from ProfM2/patch-2
Fixed deprecated Route annotation
2 parents 7002dd0 + e59a204 commit 42ef873

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Controller/DatatableController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
use Symfony\Component\PropertyAccess\PropertyAccessor;
1818
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
1919
use Symfony\Component\PropertyAccess\PropertyAccess;
20-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
21-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
20+
use Symfony\Component\Routing\Annotation\Route;
2221
use Doctrine\DBAL\Types\Type;
2322
use Exception;
2423
use DateTime;
@@ -39,8 +38,7 @@ class DatatableController extends Controller
3938
*
4039
* @param Request $request
4140
*
42-
* @Route("/datatables/edit/field", name="sg_datatables_edit")
43-
* @Method("POST")
41+
* @Route("/datatables/edit/field", method={"POST"}, name="sg_datatables_edit")
4442
*
4543
* @return Response
4644
* @throws Exception

0 commit comments

Comments
 (0)