mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
20 lines
541 B
PHP
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;
|
|
}
|