2016-09-18 00:00:46 +00:00
|
|
|
<?php
|
2020-10-14 22:19:31 +00:00
|
|
|
|
2021-07-19 05:53:45 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-08-04 22:05:14 +00:00
|
|
|
namespace App\Console\Command;
|
2016-09-18 00:00:46 +00:00
|
|
|
|
2018-08-04 22:05:14 +00:00
|
|
|
use App;
|
2018-08-05 20:48:38 +00:00
|
|
|
use App\Sync\Runner;
|
2016-09-18 00:00:46 +00:00
|
|
|
|
2019-09-10 23:10:57 +00:00
|
|
|
class SyncCommand extends CommandAbstract
|
2016-09-18 00:00:46 +00:00
|
|
|
{
|
2019-09-10 23:10:57 +00:00
|
|
|
public function __invoke(
|
|
|
|
Runner $sync,
|
2020-12-23 01:52:50 +00:00
|
|
|
string $task = App\Event\GetSyncTasks::SYNC_NOWPLAYING,
|
|
|
|
bool $force = false
|
2020-10-14 22:19:31 +00:00
|
|
|
): int {
|
2020-12-23 01:52:50 +00:00
|
|
|
$sync->runSyncTask($task, $force);
|
2018-05-07 01:57:06 +00:00
|
|
|
return 0;
|
2016-09-18 00:00:46 +00:00
|
|
|
}
|
2018-08-04 22:05:14 +00:00
|
|
|
}
|