coolify/app/Jobs/ServerFilesFromServerJob.php

26 lines
722 B
PHP
Raw Normal View History

2024-03-13 18:26:30 +01:00
<?php
namespace App\Jobs;
use App\Models\Application;
2024-03-13 18:26:30 +01: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;
2024-06-10 22:43:34 +02:00
class ServerFilesFromServerJob implements ShouldBeEncrypted, ShouldQueue
2024-03-13 18:26:30 +01:00
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
2024-06-19 08:59:46 +02:00
public function __construct(public ServiceApplication|ServiceDatabase|Application $resource) {}
2024-06-10 22:43:34 +02:00
2024-03-13 18:26:30 +01:00
public function handle()
{
$this->resource->getFilesFromServer(isInit: true);
2024-03-13 18:26:30 +01:00
}
}