2026-10-05 18:10:18 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Pterodactyl\Contracts\Eggs;
|
|
|
|
|
|
|
|
|
|
use Pterodactyl\Exceptions\Service\Egg\InvalidCopyFromException;
|
|
|
|
|
use Pterodactyl\Models\Egg;
|
|
|
|
|
|
|
|
|
|
interface UpdatesEggInstallScripts
|
|
|
|
|
{
|
|
|
|
|
/**
|
2026-10-11 23:50:53 -04:00
|
|
|
* The input is validated here, and only the fields given are changed. An egg to copy the
|
2026-10-11 08:19:22 -04:00
|
|
|
* script from must have a script of its own.
|
2026-10-05 18:10:18 -04:00
|
|
|
*
|
2026-10-11 19:54:55 -04:00
|
|
|
* @param array<string, mixed> $input any of script_install, script_is_privileged, script_entry, script_container and copy_script_from
|
2026-10-05 18:10:18 -04:00
|
|
|
*
|
|
|
|
|
* @throws InvalidCopyFromException
|
|
|
|
|
*/
|
2026-10-11 08:19:22 -04:00
|
|
|
public function update(Egg $egg, array $input): Egg;
|
2026-10-05 18:10:18 -04:00
|
|
|
}
|