Files
pterodactyl-panel/app/Contracts/Extensions/ReplacesExtensionSettingFiles.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

20 lines
541 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Extensions;
use Illuminate\Http\UploadedFile;
use Pterodactyl\Services\Extensions\ExtensionSettingsDefinition;
interface ReplacesExtensionSettingFiles
{
/**
* Store an upload as the value of a file setting, or clear the setting when
* $upload is null. The file it replaces is deleted.
*
* @return list<ExtensionSettingField>
*/
public function replace(ExtensionSettingsDefinition $definition, string $input, ?UploadedFile $upload): array;
}