Sangfroid 2 gadi atpakaļ
vecāks
revīzija
3fc4122295
1 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. 1 6
      src/Service/TmdbApiService.php

+ 1 - 6
src/Service/TmdbApiService.php

@@ -89,8 +89,6 @@ class TmdbApiService
     public function hydrateFilm($filmTmdbId): Film
     {
         $filmTmdb = json_decode($this->getDetailMovie($filmTmdbId));
-
-        dump($filmTmdb);
         
         $film = new Film();
         $film
@@ -100,9 +98,7 @@ class TmdbApiService
         if (preg_match ("/^\d{4}-\d{2}-\d{2}$/", $filmTmdb->release_date))
         {
             $dateSortie = $filmTmdb->release_date;
-            dump($dateSortie);
             $annee = substr($dateSortie, 0, 4) . '-01-01';
-            dump($annee);
             $film
                 ->setDateSortie(new \DateTimeImmutable($dateSortie))
                 ->setAnnee(new \DateTimeImmutable($annee))
@@ -125,7 +121,6 @@ class TmdbApiService
         }
 
         $film = $this->uc->assureUniciteCollections($film);
-        dump($film);
         return $film;
     }
 
@@ -141,4 +136,4 @@ class TmdbApiService
         }
         return $directors;
     }
-}
+}