AzuraCast/src/Console/Command/SyncCommand.php

21 lines
366 B
PHP
Raw Normal View History

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