ldc-cocotte/app/Jobs/UpdateSlidesStatus.php

26 lines
572 B
PHP

<?php
declare(strict_types=1);
namespace App\Jobs;
use App\Contracts\ActionInputEmpty;
use App\Contracts\Executor;
use App\Cqs\Actions\Slides\UpdateSlidesStatus as UpdateSlidesStatusAction;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
class UpdateSlidesStatus implements ShouldQueue
{
use Queueable;
/**
* Execute the job.
*/
public function handle(
Executor $executor,
UpdateSlidesStatusAction $action,
): void {
$executor->execute($action, new ActionInputEmpty());
}
}