♻️ Dependency injection
This commit is contained in:
parent
970db87cbc
commit
1295b03c3a
2 changed files with 4 additions and 4 deletions
|
|
@ -10,10 +10,10 @@ class TraktWatchImport extends Command
|
|||
protected $signature = 'show:watch:import {files* : JSON files to import}';
|
||||
protected $description = 'Once online, sync watches from show:watch:export';
|
||||
|
||||
public function handle(): int
|
||||
public function handle(Trakt $trakt): int
|
||||
{
|
||||
$watched = WatchData::from($this->arguments());
|
||||
$resp = $this->app->make(Trakt::class)->syncHistory($watched, $this->output);
|
||||
$resp = $trakt->syncHistory($watched, $this->output);
|
||||
|
||||
return $resp->ok() ? static::SUCCESS : static::FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue