Implement creator studio and upload updates
This commit is contained in:
30
app/Jobs/Sitemaps/BuildSitemapReleaseJob.php
Normal file
30
app/Jobs/Sitemaps/BuildSitemapReleaseJob.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Jobs\Sitemaps;
|
||||
|
||||
use App\Services\Sitemaps\SitemapPublishService;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
final class BuildSitemapReleaseJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable;
|
||||
use InteractsWithQueue;
|
||||
use Queueable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(private readonly ?array $families = null, private readonly ?string $releaseId = null)
|
||||
{
|
||||
$this->onQueue('default');
|
||||
}
|
||||
|
||||
public function handle(SitemapPublishService $publish): void
|
||||
{
|
||||
$publish->buildRelease($this->families, $this->releaseId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user