AzuraCast/src/Console/Command/SyncCommand.php

21 lines
366 B
PHP
Raw Normal View History

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