A lot of things.

This commit is contained in:
2026-05-27 21:24:44 +02:00
parent d02baa89d6
commit c68c4d18b5
3 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Jobs;
use App\Models\Entry;
use App\Services\XenforoApiService;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
class CreateXenForoCommentsThread implements ShouldQueue
{
use Queueable;
public $tries = 3;
public $backoff = 10;
/**
* Create a new job instance.
*/
public function __construct(
protected Entry $entry
)
{
//
}
/**
* Execute the job.
*/
public function handle(XenforoApiService $service): void
{
$service->createCommentsThread($this->entry);
}
}