瀏覽代碼

Hotfix Security

François Drouhard 10 月之前
父節點
當前提交
5eaa7abb1f
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      src/Controller/RealisateurController.php
  2. 1 2
      src/Controller/VideothequeController.php

+ 1 - 1
src/Controller/RealisateurController.php

@@ -6,12 +6,12 @@ use App\Entity\Realisateur;
 use App\Form\RealisateurType;
 use App\Repository\RealisateurRepository;
 use App\Service\RealisateurManager;
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 use Symfony\Component\Form\FormFactoryInterface;
 use Symfony\Component\Routing\Annotation\Route;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\Security\Http\Attribute\IsGranted;
 
 class RealisateurController extends AbstractController
 {

+ 1 - 2
src/Controller/VideothequeController.php

@@ -4,7 +4,6 @@ namespace App\Controller;
 
 use App\Entity\Commentaire;
 use App\Entity\Realisateur;
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 use Symfony\Component\HttpFoundation\JsonResponse;
 use Symfony\Component\Routing\Annotation\Route;
@@ -15,7 +14,6 @@ use App\Form\FilmType;
 use App\Repository\CommentaireRepository;
 use App\Repository\FilmRepository;
 use App\Repository\GenreRepository;
-use App\Repository\MediaVideoRepository;
 use App\Repository\RealisateurRepository;
 use App\Service\CommentaireManager;
 use App\Service\FilmManager;
@@ -24,6 +22,7 @@ use App\Service\TmdbApiService;
 use Symfony\Bundle\SecurityBundle\Security;
 use Symfony\Component\Form\FormFactoryInterface;
 use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\Security\Http\Attribute\IsGranted;
 use Symfony\Component\Serializer\SerializerInterface;
 
 class VideothequeController extends AbstractController