Files
coolify/app/Support/DatabaseImport/DatabaseImportSource.php
T
Andras Bacsai ab3b3926aa feat: add database import API and Cloudflare DNS management
Queue database imports from upload, S3, or server paths via REST, and
manage Cloudflare DNS records from integration tokens and domain UIs.
2026-09-09 11:14:22 +02:00

21 lines
515 B
PHP

<?php
namespace App\Support\DatabaseImport;
use InvalidArgumentException;
readonly class DatabaseImportSource
{
public function __construct(
public string $type,
public ?string $uploadId = null,
public ?string $path = null,
public ?string $s3StorageUuid = null,
public bool $dumpAll = false,
) {
if (! in_array($type, ['upload', 's3', 'server'], true)) {
throw new InvalidArgumentException('Invalid database import source.');
}
}
}