share-lt/app/Jobs/ProcessEntryUpdate.php
jon brookes 5b0e55c4b2 feat: implement Change resource with CRUD functionality and migration
update image tags to v0.0.8 in build scripts and docker-compose files
2026-02-17 16:07:22 +00:00

34 lines
800 B
PHP

<?php
namespace App\Jobs;
use App\Services\ProcessUpdateService;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class ProcessEntryUpdate implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*/
public function __construct(
public int $entryId,
public string $action,
public string $type = 'entry_update_'
) {
//
}
/**
* Execute the job.
*/
public function handle(): void
{
(new ProcessUpdateService)->processUpdate($this->entryId, $this->action, $this->type);
}
}