fix-feat: ajax download call
This commit is contained in:
@@ -10,12 +10,15 @@ use OneToMany\RichBundle\Contract\InputInterface;
|
||||
class GetMovieOptionsInput implements InputInterface
|
||||
{
|
||||
public function __construct(
|
||||
#[SourceRoute('tmdbId')]
|
||||
public string $tmdbId,
|
||||
|
||||
#[SourceRoute('imdbId')]
|
||||
public string $imdbId,
|
||||
) {}
|
||||
|
||||
public function toCommand(): CommandInterface
|
||||
{
|
||||
return new GetMovieOptionsCommand($this->imdbId);
|
||||
return new GetMovieOptionsCommand($this->tmdbId, $this->imdbId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user