2024-03-13 17:26:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Jobs;
|
|
|
|
|
2024-04-15 17:47:17 +00:00
|
|
|
use App\Models\Application;
|
2024-03-13 17:26:30 +00:00
|
|
|
use App\Models\ServiceApplication;
|
|
|
|
use App\Models\ServiceDatabase;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class ServerFilesFromServerJob implements ShouldQueue, ShouldBeEncrypted
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
|
|
|
|
2024-04-15 17:47:17 +00:00
|
|
|
public function __construct(public ServiceApplication|ServiceDatabase|Application $resource)
|
2024-03-13 17:26:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
public function handle()
|
|
|
|
{
|
2024-04-15 17:47:17 +00:00
|
|
|
$this->resource->getFilesFromServer(isInit: true);
|
2024-03-13 17:26:30 +00:00
|
|
|
}
|
|
|
|
}
|