소스 검색

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