Generate grid
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user