Update panel to send correct service option configuration to the daemon.
This commit is contained in:
parent
1a5a1f82e7
commit
38075c6b9f
12 changed files with 282 additions and 83 deletions
|
@ -10,6 +10,7 @@
|
|||
namespace Pterodactyl\Contracts\Repository;
|
||||
|
||||
use Pterodactyl\Models\ServiceOption;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
interface ServiceOptionRepositoryInterface extends RepositoryInterface
|
||||
{
|
||||
|
@ -23,15 +24,21 @@ interface ServiceOptionRepositoryInterface extends RepositoryInterface
|
|||
*/
|
||||
public function getWithVariables(int $id): ServiceOption;
|
||||
|
||||
/**
|
||||
* Return all of the service options and their relations to be used in the daemon API.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Collection
|
||||
*/
|
||||
public function getAllWithCopyAttributes(): Collection;
|
||||
|
||||
/**
|
||||
* Return a service option with the scriptFrom and configFrom relations loaded onto the model.
|
||||
*
|
||||
* @param int $id
|
||||
* @param int|string $value
|
||||
* @param string $column
|
||||
* @return \Pterodactyl\Models\ServiceOption
|
||||
*
|
||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||
*/
|
||||
public function getWithCopyAttributes(int $id): ServiceOption;
|
||||
public function getWithCopyAttributes($value, string $column = 'id'): ServiceOption;
|
||||
|
||||
/**
|
||||
* Return all of the data needed to export a service.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue