2024-08-22 17:04:07 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
use App\Jobs\ResolveDependenciesJob;
|
|
|
|
use App\Jobs\ResolveSptVersionsJob;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
class ResolveVersionsCommand extends Command
|
|
|
|
{
|
|
|
|
protected $signature = 'app:resolve-versions';
|
|
|
|
|
|
|
|
protected $description = 'Resolve SPT and dependency versions for all mods.';
|
|
|
|
|
|
|
|
public function handle(): void
|
|
|
|
{
|
2024-08-30 23:13:46 -04:00
|
|
|
ResolveSptVersionsJob::dispatch()->onQueue('default');
|
|
|
|
ResolveDependenciesJob::dispatch()->onQueue('default');
|
2024-08-22 17:04:07 -04:00
|
|
|
|
|
|
|
$this->info('The import job has been added to the queue.');
|
|
|
|
}
|
|
|
|
}
|