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