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

Commit

Permalink
Merge pull request #811 from ProfM2/patch-2
Browse files Browse the repository at this point in the history
Fixed deprecated Route annotation
  • Loading branch information
stephanvierkant authored May 7, 2019
2 parents 7002dd0 + e59a204 commit 42ef873
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Controller/DatatableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 42ef873

Please sign in to comment.