diff --git a/Controller/DatatableController.php b/Controller/DatatableController.php index 7f32e99d..7c4ae7bf 100644 --- a/Controller/DatatableController.php +++ b/Controller/DatatableController.php @@ -17,8 +17,7 @@ use Symfony\Component\PropertyAccess\PropertyAccessor; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\PropertyAccess\PropertyAccess; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; +use Symfony\Component\Routing\Annotation\Route; use Doctrine\DBAL\Types\Type; use Exception; use DateTime; @@ -39,8 +38,7 @@ class DatatableController extends Controller * * @param Request $request * - * @Route("/datatables/edit/field", name="sg_datatables_edit") - * @Method("POST") + * @Route("/datatables/edit/field", method={"POST"}, name="sg_datatables_edit") * * @return Response * @throws Exception