Files
symfonycast.local/app/Jobs/GetVideoFileSize.php
2022-11-16 07:18:21 +01:00

28 lines
735 B
PHP

<?php
namespace App\Jobs;
use App\Http\SymfonyCastDl\HtmlParser;
use App\Http\SymfonyCastDl\SymfonyCastDlService;
use App\Models\Chapter;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class GetVideoFileSize implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct(private int $chapterId)
{
}
public function handle(SymfonyCastDlService $symfonyCastDlService)
{
$symfonyCastDlService->videoSize(Chapter::find($this->chapterId));
}
}