Generate grid

This commit is contained in:
thibaud-leclere
2026-01-31 16:17:24 +01:00
parent 1ebf8b99b3
commit a196fac6c6
10 changed files with 158 additions and 40 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Gateway;
use App\Context\TMDB\ActorCreditsContext;
use App\Context\TMDB\MovieCreditsContext;
use App\Context\TMDB\MovieSearchContext;
use App\Exception\GatewayException;
@@ -44,7 +45,7 @@ readonly class TMDBGateway
*/
public function getMovieCredits(int $movieId): ?MovieCreditsContext
{
$url = str_replace('{id}', $movieId, $this->host.self::MOVIE_CREDITS_URI);
$url = $this->host.str_replace('{id}', $movieId, self::MOVIE_CREDITS_URI);
return $this->fetchSerialized('GET', $url, MovieCreditsContext::class);
}