forge/app/Console/Commands/ResolveVersionsCommand.php

25 lines
632 B
PHP
Raw Normal View History

<?php
2025-01-30 00:23:55 -05:00
declare(strict_types=1);
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
{
ResolveSptVersionsJob::dispatch()->onQueue('default');
ResolveDependenciesJob::dispatch()->onQueue('default');
$this->info('ResolveSptVersionsJob and ResolveDependenciesJob have been added to the queue');
}
}