Massive PHPCS linting
This commit is contained in:
parent
78c8b8d8ea
commit
3ee5803416
346 changed files with 834 additions and 1424 deletions
1
.php_cs
1
.php_cs
|
@ -31,6 +31,7 @@ return PhpCsFixer\Config::create()
|
||||||
'no_unreachable_default_argument_value' => true,
|
'no_unreachable_default_argument_value' => true,
|
||||||
'no_useless_return' => true,
|
'no_useless_return' => true,
|
||||||
'not_operator_with_successor_space' => true,
|
'not_operator_with_successor_space' => true,
|
||||||
|
'phpdoc_align' => ['tags' => ['param']],
|
||||||
'phpdoc_separation' => false,
|
'phpdoc_separation' => false,
|
||||||
'protected_to_private' => false,
|
'protected_to_private' => false,
|
||||||
'psr0' => ['dir' => 'app'],
|
'psr0' => ['dir' => 'app'],
|
||||||
|
|
|
@ -49,8 +49,6 @@ class AddLocation extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,8 +57,6 @@ class AddNode extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,8 +46,6 @@ class CleanServiceBackup extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,8 +45,6 @@ class ClearServices extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,8 +49,6 @@ class ClearTasks extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,8 +51,6 @@ class MakeUser extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,8 +49,6 @@ class RebuildServer extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,8 +50,6 @@ class RunTasks extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,8 +45,6 @@ class ShowVersion extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,8 +51,6 @@ class UpdateEmailSettings extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,8 +55,6 @@ class UpdateEnvironment extends Command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,8 +30,7 @@ class Kernel extends ConsoleKernel
|
||||||
/**
|
/**
|
||||||
* Define the application's command schedule.
|
* Define the application's command schedule.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,8 +31,8 @@ interface CriteriaInterface
|
||||||
/**
|
/**
|
||||||
* Apply selected criteria to a repository call.
|
* Apply selected criteria to a repository call.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Database\Eloquent\Model $model
|
* @param \Illuminate\Database\Eloquent\Model $model
|
||||||
* @param \Pterodactyl\Repositories\Repository $repository
|
* @param \Pterodactyl\Repositories\Repository $repository
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function apply($model, Repository $repository);
|
public function apply($model, Repository $repository);
|
||||||
|
|
|
@ -29,8 +29,8 @@ interface AllocationRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Set an array of allocation IDs to be assigned to a specific server.
|
* Set an array of allocation IDs to be assigned to a specific server.
|
||||||
*
|
*
|
||||||
* @param int|null $server
|
* @param int|null $server
|
||||||
* @param array $ids
|
* @param array $ids
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function assignAllocationsToServer($server, array $ids);
|
public function assignAllocationsToServer($server, array $ids);
|
||||||
|
@ -38,7 +38,7 @@ interface AllocationRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return all of the allocations for a specific node.
|
* Return all of the allocations for a specific node.
|
||||||
*
|
*
|
||||||
* @param int $node
|
* @param int $node
|
||||||
* @return \Illuminate\Database\Eloquent\Collection
|
* @return \Illuminate\Database\Eloquent\Collection
|
||||||
*/
|
*/
|
||||||
public function getAllocationsForNode($node);
|
public function getAllocationsForNode($node);
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Contracts\Repository;
|
||||||
|
|
||||||
interface ApiKeyRepositoryInterface extends RepositoryInterface
|
interface ApiKeyRepositoryInterface extends RepositoryInterface
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Contracts\Repository;
|
||||||
|
|
||||||
interface ApiPermissionRepositoryInterface extends RepositoryInterface
|
interface ApiPermissionRepositoryInterface extends RepositoryInterface
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ interface SearchableInterface
|
||||||
/**
|
/**
|
||||||
* Filter results by search term.
|
* Filter results by search term.
|
||||||
*
|
*
|
||||||
* @param string $term
|
* @param string $term
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function search($term);
|
public function search($term);
|
||||||
|
|
|
@ -29,7 +29,7 @@ interface BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Set the node model to be used for this daemon connection.
|
* Set the node model to be used for this daemon connection.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setNode($id);
|
public function setNode($id);
|
||||||
|
@ -44,7 +44,7 @@ interface BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Set the UUID for the server to be used in the X-Access-Server header for daemon requests.
|
* Set the UUID for the server to be used in the X-Access-Server header for daemon requests.
|
||||||
*
|
*
|
||||||
* @param null|string $server
|
* @param null|string $server
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setAccessServer($server = null);
|
public function setAccessServer($server = null);
|
||||||
|
@ -59,7 +59,7 @@ interface BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Set the token to be used in the X-Access-Token header for requests to the daemon.
|
* Set the token to be used in the X-Access-Token header for requests to the daemon.
|
||||||
*
|
*
|
||||||
* @param null|string $token
|
* @param null|string $token
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setAccessToken($token = null);
|
public function setAccessToken($token = null);
|
||||||
|
@ -74,7 +74,7 @@ interface BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return an instance of the Guzzle HTTP Client to be used for requests.
|
* Return an instance of the Guzzle HTTP Client to be used for requests.
|
||||||
*
|
*
|
||||||
* @param array $headers
|
* @param array $headers
|
||||||
* @return \GuzzleHttp\Client
|
* @return \GuzzleHttp\Client
|
||||||
*/
|
*/
|
||||||
public function getHttpClient($headers = []);
|
public function getHttpClient($headers = []);
|
||||||
|
|
|
@ -29,7 +29,7 @@ interface ConfigurationRepositoryInterface extends BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Update the configuration details for the specified node using data from the database.
|
* Update the configuration details for the specified node using data from the database.
|
||||||
*
|
*
|
||||||
* @param array $overrides
|
* @param array $overrides
|
||||||
* @return \Psr\Http\Message\ResponseInterface
|
* @return \Psr\Http\Message\ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function update(array $overrides = []);
|
public function update(array $overrides = []);
|
||||||
|
|
|
@ -29,9 +29,9 @@ interface ServerRepositoryInterface extends BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Create a new server on the daemon for the panel.
|
* Create a new server on the daemon for the panel.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param array $overrides
|
* @param array $overrides
|
||||||
* @param bool $start
|
* @param bool $start
|
||||||
* @return \Psr\Http\Message\ResponseInterface
|
* @return \Psr\Http\Message\ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function create($id, $overrides = [], $start = false);
|
public function create($id, $overrides = [], $start = false);
|
||||||
|
@ -39,7 +39,7 @@ interface ServerRepositoryInterface extends BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Update server details on the daemon.
|
* Update server details on the daemon.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return \Psr\Http\Message\ResponseInterface
|
* @return \Psr\Http\Message\ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function update(array $data);
|
public function update(array $data);
|
||||||
|
@ -47,7 +47,7 @@ interface ServerRepositoryInterface extends BaseRepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Mark a server to be reinstalled on the system.
|
* Mark a server to be reinstalled on the system.
|
||||||
*
|
*
|
||||||
* @param array|null $data
|
* @param array|null $data
|
||||||
* @return \Psr\Http\Message\ResponseInterface
|
* @return \Psr\Http\Message\ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function reinstall($data = null);
|
public function reinstall($data = null);
|
||||||
|
|
|
@ -36,7 +36,7 @@ interface DatabaseHostRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return a database host with the databases and associated servers that are attached to said databases.
|
* Return a database host with the databases and associated servers that are attached to said databases.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -46,7 +46,7 @@ interface DatabaseHostRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Delete a database host from the DB if there are no databases using it.
|
* Delete a database host from the DB if there are no databases using it.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return bool|null
|
* @return bool|null
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
|
|
@ -30,7 +30,7 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
* Create a new database if it does not already exist on the host with
|
* Create a new database if it does not already exist on the host with
|
||||||
* the provided details.
|
* the provided details.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -41,8 +41,8 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Create a new database on a given connection.
|
* Create a new database on a given connection.
|
||||||
*
|
*
|
||||||
* @param string $database
|
* @param string $database
|
||||||
* @param null|string $connection
|
* @param null|string $connection
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function createDatabase($database, $connection = null);
|
public function createDatabase($database, $connection = null);
|
||||||
|
@ -50,10 +50,10 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Create a new database user on a given connection.
|
* Create a new database user on a given connection.
|
||||||
*
|
*
|
||||||
* @param string $username
|
* @param string $username
|
||||||
* @param string $remote
|
* @param string $remote
|
||||||
* @param string $password
|
* @param string $password
|
||||||
* @param null|string $connection
|
* @param null|string $connection
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function createUser($username, $remote, $password, $connection = null);
|
public function createUser($username, $remote, $password, $connection = null);
|
||||||
|
@ -61,10 +61,10 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Give a specific user access to a given database.
|
* Give a specific user access to a given database.
|
||||||
*
|
*
|
||||||
* @param string $database
|
* @param string $database
|
||||||
* @param string $username
|
* @param string $username
|
||||||
* @param string $remote
|
* @param string $remote
|
||||||
* @param null|string $connection
|
* @param null|string $connection
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function assignUserToDatabase($database, $username, $remote, $connection = null);
|
public function assignUserToDatabase($database, $username, $remote, $connection = null);
|
||||||
|
@ -72,7 +72,7 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Flush the privileges for a given connection.
|
* Flush the privileges for a given connection.
|
||||||
*
|
*
|
||||||
* @param null|string $connection
|
* @param null|string $connection
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function flush($connection = null);
|
public function flush($connection = null);
|
||||||
|
@ -80,8 +80,8 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Drop a given database on a specific connection.
|
* Drop a given database on a specific connection.
|
||||||
*
|
*
|
||||||
* @param string $database
|
* @param string $database
|
||||||
* @param null|string $connection
|
* @param null|string $connection
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function dropDatabase($database, $connection = null);
|
public function dropDatabase($database, $connection = null);
|
||||||
|
@ -89,9 +89,9 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Drop a given user on a specific connection.
|
* Drop a given user on a specific connection.
|
||||||
*
|
*
|
||||||
* @param string $username
|
* @param string $username
|
||||||
* @param string $remote
|
* @param string $remote
|
||||||
* @param null|string $connection
|
* @param null|string $connection
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function dropUser($username, $remote, $connection = null);
|
public function dropUser($username, $remote, $connection = null);
|
||||||
|
|
|
@ -56,7 +56,7 @@ interface LocationRepositoryInterface extends RepositoryInterface, SearchableInt
|
||||||
/**
|
/**
|
||||||
* Return all of the nodes and their respective count of servers for a location.
|
* Return all of the nodes and their respective count of servers for a location.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
|
|
@ -31,7 +31,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return the usage stats for a single node.
|
* Return the usage stats for a single node.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getUsageStats($id);
|
public function getUsageStats($id);
|
||||||
|
@ -39,7 +39,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return all available nodes with a searchable interface.
|
* Return all available nodes with a searchable interface.
|
||||||
*
|
*
|
||||||
* @param int $count
|
* @param int $count
|
||||||
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||||
*/
|
*/
|
||||||
public function getNodeListingData($count = 25);
|
public function getNodeListingData($count = 25);
|
||||||
|
@ -47,7 +47,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return a single node with location and server information.
|
* Return a single node with location and server information.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -57,7 +57,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return a node with all of the associated allocations and servers that are attached to said allocations.
|
* Return a node with all of the associated allocations and servers that are attached to said allocations.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -67,7 +67,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return a node with all of the servers attached to that node.
|
* Return a node with all of the servers attached to that node.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -77,7 +77,7 @@ interface NodeRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return a collection of nodes beloning to a specific location for use on frontend display.
|
* Return a collection of nodes beloning to a specific location for use on frontend display.
|
||||||
*
|
*
|
||||||
* @param int $location
|
* @param int $location
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getNodesForLocation($location);
|
public function getNodesForLocation($location);
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Contracts\Repository;
|
||||||
|
|
||||||
interface OptionVariableRepositoryInterface extends RepositoryInterface
|
interface OptionVariableRepositoryInterface extends RepositoryInterface
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ interface PackRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return a pack with the associated server models attached to it.
|
* Return a pack with the associated server models attached to it.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Database\Eloquent\Collection
|
* @return \Illuminate\Database\Eloquent\Collection
|
||||||
*
|
*
|
||||||
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
|
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
|
||||||
|
@ -49,8 +49,8 @@ interface PackRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return all of the file archives for a given pack.
|
* Return all of the file archives for a given pack.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param bool $collection
|
* @param bool $collection
|
||||||
* @return object|\Illuminate\Support\Collection
|
* @return object|\Illuminate\Support\Collection
|
||||||
*
|
*
|
||||||
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
|
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
|
||||||
|
|
|
@ -57,7 +57,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* An array of columns to filter the response by.
|
* An array of columns to filter the response by.
|
||||||
*
|
*
|
||||||
* @param array $columns
|
* @param array $columns
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function withColumns($columns = ['*']);
|
public function withColumns($columns = ['*']);
|
||||||
|
@ -72,8 +72,8 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Create a new model instance and persist it to the database.
|
* Create a new model instance and persist it to the database.
|
||||||
*
|
*
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @param bool $validate
|
* @param bool $validate
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -83,7 +83,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Delete a given record from the database.
|
* Delete a given record from the database.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function delete($id);
|
public function delete($id);
|
||||||
|
@ -91,7 +91,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Delete records matching the given attributes.
|
* Delete records matching the given attributes.
|
||||||
*
|
*
|
||||||
* @param array $attributes
|
* @param array $attributes
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function deleteWhere(array $attributes);
|
public function deleteWhere(array $attributes);
|
||||||
|
@ -99,7 +99,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Find a model that has the specific ID passed.
|
* Find a model that has the specific ID passed.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -109,7 +109,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Find a model matching an array of where clauses.
|
* Find a model matching an array of where clauses.
|
||||||
*
|
*
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -119,7 +119,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Find and return the first matching instance for the given fields.
|
* Find and return the first matching instance for the given fields.
|
||||||
*
|
*
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function findFirstWhere(array $fields);
|
public function findFirstWhere(array $fields);
|
||||||
|
@ -127,7 +127,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return a count of records matching the passed arguments.
|
* Return a count of records matching the passed arguments.
|
||||||
*
|
*
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function findCountWhere(array $fields);
|
public function findCountWhere(array $fields);
|
||||||
|
@ -135,10 +135,10 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Update a given ID with the passed array of fields.
|
* Update a given ID with the passed array of fields.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @param bool $validate
|
* @param bool $validate
|
||||||
* @param bool $force
|
* @param bool $force
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -150,9 +150,9 @@ interface RepositoryInterface
|
||||||
* Perform a mass update where matching records are updated using whereIn.
|
* Perform a mass update where matching records are updated using whereIn.
|
||||||
* This does not perform any model data validation.
|
* This does not perform any model data validation.
|
||||||
*
|
*
|
||||||
* @param string $column
|
* @param string $column
|
||||||
* @param array $values
|
* @param array $values
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function updateWhereIn($column, array $values, array $fields);
|
public function updateWhereIn($column, array $values, array $fields);
|
||||||
|
@ -160,10 +160,10 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Update a record if it exists in the database, otherwise create it.
|
* Update a record if it exists in the database, otherwise create it.
|
||||||
*
|
*
|
||||||
* @param array $where
|
* @param array $where
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @param bool $validate
|
* @param bool $validate
|
||||||
* @param bool $force
|
* @param bool $force
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -173,8 +173,8 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Update multiple records matching the passed clauses.
|
* Update multiple records matching the passed clauses.
|
||||||
*
|
*
|
||||||
* @param array $where
|
* @param array $where
|
||||||
* @param array $fields
|
* @param array $fields
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function massUpdate(array $where, array $fields);
|
public function massUpdate(array $where, array $fields);
|
||||||
|
@ -190,7 +190,7 @@ interface RepositoryInterface
|
||||||
* Insert a single or multiple records into the database at once skipping
|
* Insert a single or multiple records into the database at once skipping
|
||||||
* validation and mass assignment checking.
|
* validation and mass assignment checking.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function insert(array $data);
|
public function insert(array $data);
|
||||||
|
@ -198,7 +198,7 @@ interface RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Insert multiple records into the database and ignore duplicates.
|
* Insert multiple records into the database and ignore duplicates.
|
||||||
*
|
*
|
||||||
* @param array $values
|
* @param array $values
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function insertIgnore(array $values);
|
public function insertIgnore(array $values);
|
||||||
|
|
|
@ -31,7 +31,7 @@ interface ServerRepositoryInterface extends RepositoryInterface, SearchableInter
|
||||||
/**
|
/**
|
||||||
* Returns a listing of all servers that exist including relationships.
|
* Returns a listing of all servers that exist including relationships.
|
||||||
*
|
*
|
||||||
* @param int $paginate
|
* @param int $paginate
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getAllServers($paginate);
|
public function getAllServers($paginate);
|
||||||
|
@ -39,7 +39,7 @@ interface ServerRepositoryInterface extends RepositoryInterface, SearchableInter
|
||||||
/**
|
/**
|
||||||
* Return a server model and all variables associated with the server.
|
* Return a server model and all variables associated with the server.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -50,8 +50,8 @@ interface ServerRepositoryInterface extends RepositoryInterface, SearchableInter
|
||||||
* Return all of the server variables possible and default to the variable
|
* Return all of the server variables possible and default to the variable
|
||||||
* default if there is no value defined for the specific server requested.
|
* default if there is no value defined for the specific server requested.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @param bool $returnAsObject
|
* @param bool $returnAsObject
|
||||||
* @return array|object
|
* @return array|object
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -71,7 +71,7 @@ interface ServerRepositoryInterface extends RepositoryInterface, SearchableInter
|
||||||
/**
|
/**
|
||||||
* Return a server as well as associated databases and their hosts.
|
* Return a server as well as associated databases and their hosts.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -81,7 +81,7 @@ interface ServerRepositoryInterface extends RepositoryInterface, SearchableInter
|
||||||
/**
|
/**
|
||||||
* Return data about the daemon service in a consumable format.
|
* Return data about the daemon service in a consumable format.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return array
|
* @return array
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Contracts\Repository;
|
||||||
|
|
||||||
interface ServerVariableRepositoryInterface extends RepositoryInterface
|
interface ServerVariableRepositoryInterface extends RepositoryInterface
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ interface ServiceOptionRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return a service option with the variables relation attached.
|
* Return a service option with the variables relation attached.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getWithVariables($id);
|
public function getWithVariables($id);
|
||||||
|
@ -37,7 +37,7 @@ interface ServiceOptionRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return a service option with the copyFrom relation loaded onto the model.
|
* Return a service option with the copyFrom relation loaded onto the model.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getWithCopyFrom($id);
|
public function getWithCopyFrom($id);
|
||||||
|
@ -45,8 +45,8 @@ interface ServiceOptionRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Confirm a copy script belongs to the same service as the item trying to use it.
|
* Confirm a copy script belongs to the same service as the item trying to use it.
|
||||||
*
|
*
|
||||||
* @param int $copyFromId
|
* @param int $copyFromId
|
||||||
* @param int $service
|
* @param int $service
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isCopiableScript($copyFromId, $service);
|
public function isCopiableScript($copyFromId, $service);
|
||||||
|
|
|
@ -29,7 +29,7 @@ interface ServiceRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return a service or all services with their associated options, variables, and packs.
|
* Return a service or all services with their associated options, variables, and packs.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Support\Collection
|
* @return \Illuminate\Support\Collection
|
||||||
*/
|
*/
|
||||||
public function getWithOptions($id = null);
|
public function getWithOptions($id = null);
|
||||||
|
@ -37,7 +37,7 @@ interface ServiceRepositoryInterface extends RepositoryInterface
|
||||||
/**
|
/**
|
||||||
* Return a service along with its associated options and the servers relation on those options.
|
* Return a service along with its associated options and the servers relation on those options.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getWithOptionServers($id);
|
public function getWithOptionServers($id);
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Contracts\Repository;
|
||||||
|
|
||||||
interface ServiceVariableRepositoryInterface extends RepositoryInterface
|
interface ServiceVariableRepositoryInterface extends RepositoryInterface
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ interface UserRepositoryInterface extends RepositoryInterface, SearchableInterfa
|
||||||
/**
|
/**
|
||||||
* Return all matching models for a user in a format that can be used for dropdowns.
|
* Return all matching models for a user in a format that can be used for dropdowns.
|
||||||
*
|
*
|
||||||
* @param string $query
|
* @param string $query
|
||||||
* @return \Illuminate\Database\Eloquent\Collection
|
* @return \Illuminate\Database\Eloquent\Collection
|
||||||
*/
|
*/
|
||||||
public function filterUsersByQuery($query);
|
public function filterUsersByQuery($query);
|
||||||
|
|
|
@ -47,9 +47,8 @@ class FailedCaptcha
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param string $ip
|
* @param string $ip
|
||||||
* @param string $domain
|
* @param string $domain
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct($ip, $domain)
|
public function __construct($ip, $domain)
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,9 +47,8 @@ class FailedPasswordReset
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param string $ip
|
* @param string $ip
|
||||||
* @param string $email
|
* @param string $email
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct($ip, $email)
|
public function __construct($ip, $email)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,5 +4,4 @@ namespace Pterodactyl\Events;
|
||||||
|
|
||||||
abstract class Event
|
abstract class Event
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Created
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Creating
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Deleted
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Deleting
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Saved
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Saving
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Updated
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Updating
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Server $server)
|
public function __construct(Server $server)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Created
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Subuser $subuser
|
* @param \Pterodactyl\Models\Subuser $subuser
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Subuser $subuser)
|
public function __construct(Subuser $subuser)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Creating
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Subuser $subuser
|
* @param \Pterodactyl\Models\Subuser $subuser
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Subuser $subuser)
|
public function __construct(Subuser $subuser)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Deleted
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Subuser $subuser
|
* @param \Pterodactyl\Models\Subuser $subuser
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Subuser $subuser)
|
public function __construct(Subuser $subuser)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Deleting
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Subuser $subuser
|
* @param \Pterodactyl\Models\Subuser $subuser
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(Subuser $subuser)
|
public function __construct(Subuser $subuser)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Created
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(User $user)
|
public function __construct(User $user)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Creating
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(User $user)
|
public function __construct(User $user)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Deleted
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(User $user)
|
public function __construct(User $user)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,8 +41,7 @@ class Deleting
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct(User $user)
|
public function __construct(User $user)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions;
|
||||||
|
|
||||||
class AccountNotFoundException extends \Exception
|
class AccountNotFoundException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions;
|
||||||
|
|
||||||
class AutoDeploymentException extends \Exception
|
class AutoDeploymentException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,8 @@ class DisplayException extends PterodactylException
|
||||||
/**
|
/**
|
||||||
* Exception constructor.
|
* Exception constructor.
|
||||||
*
|
*
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param mixed $log
|
* @param mixed $log
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct($message, $log = null)
|
public function __construct($message, $log = null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions;
|
||||||
|
|
||||||
class DisplayValidationException extends PterodactylException
|
class DisplayValidationException extends PterodactylException
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Handler extends ExceptionHandler
|
||||||
*
|
*
|
||||||
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
|
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
|
||||||
*
|
*
|
||||||
* @param \Exception $exception
|
* @param \Exception $exception
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
|
@ -49,8 +49,8 @@ class Handler extends ExceptionHandler
|
||||||
/**
|
/**
|
||||||
* Render an exception into an HTTP response.
|
* Render an exception into an HTTP response.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Exception $exception
|
* @param \Exception $exception
|
||||||
* @return \Illuminate\Http\JsonResponse|\Symfony\Component\HttpFoundation\Response
|
* @return \Illuminate\Http\JsonResponse|\Symfony\Component\HttpFoundation\Response
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -85,8 +85,8 @@ class Handler extends ExceptionHandler
|
||||||
/**
|
/**
|
||||||
* Convert an authentication exception into an unauthenticated response.
|
* Convert an authentication exception into an unauthenticated response.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Illuminate\Auth\AuthenticationException $exception
|
* @param \Illuminate\Auth\AuthenticationException $exception
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
protected function unauthenticated($request, AuthenticationException $exception)
|
protected function unauthenticated($request, AuthenticationException $exception)
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions;
|
||||||
|
|
||||||
class PterodactylException extends \Exception
|
class PterodactylException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions\Repository;
|
||||||
|
|
||||||
class RecordNotFoundException extends \Exception
|
class RecordNotFoundException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions\Repository;
|
||||||
|
|
||||||
class RepositoryException extends \Exception
|
class RepositoryException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Pterodactyl\Exceptions\DisplayException;
|
||||||
|
|
||||||
class HasActiveServersException extends DisplayException
|
class HasActiveServersException extends DisplayException
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Pterodactyl\Exceptions\DisplayException;
|
||||||
|
|
||||||
class InvalidFileMimeTypeException extends DisplayException
|
class InvalidFileMimeTypeException extends DisplayException
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Pterodactyl\Exceptions\DisplayException;
|
||||||
|
|
||||||
class InvalidFileUploadException extends DisplayException
|
class InvalidFileUploadException extends DisplayException
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Pterodactyl\Exceptions\DisplayException;
|
||||||
|
|
||||||
class InvalidPackArchiveFormatException extends DisplayException
|
class InvalidPackArchiveFormatException extends DisplayException
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Pterodactyl\Exceptions\DisplayException;
|
||||||
|
|
||||||
class UnreadableZipArchiveException extends DisplayException
|
class UnreadableZipArchiveException extends DisplayException
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions\Service\Pack;
|
||||||
|
|
||||||
class ZipArchiveCreationException extends \Exception
|
class ZipArchiveCreationException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Exception;
|
||||||
|
|
||||||
class RequiredVariableMissingException extends Exception
|
class RequiredVariableMissingException extends Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions\Service\ServiceOption;
|
||||||
|
|
||||||
class InvalidCopyFromException extends \Exception
|
class InvalidCopyFromException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,5 +26,4 @@ namespace Pterodactyl\Exceptions\Service\ServiceOption;
|
||||||
|
|
||||||
class NoParentConfigurationFoundException extends \Exception
|
class NoParentConfigurationFoundException extends \Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,4 @@ use Exception;
|
||||||
|
|
||||||
class ReservedVariableNameException extends Exception
|
class ReservedVariableNameException extends Exception
|
||||||
{
|
{
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,9 +70,9 @@ class DynamicDatabaseConnection
|
||||||
/**
|
/**
|
||||||
* Adds a dynamic database connection entry to the runtime config.
|
* Adds a dynamic database connection entry to the runtime config.
|
||||||
*
|
*
|
||||||
* @param string $connection
|
* @param string $connection
|
||||||
* @param \Pterodactyl\Models\DatabaseHost|int $host
|
* @param \Pterodactyl\Models\DatabaseHost|int $host
|
||||||
* @param string $database
|
* @param string $database
|
||||||
*/
|
*/
|
||||||
public function set($connection, $host, $database = 'mysql')
|
public function set($connection, $host, $database = 'mysql')
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,10 +31,10 @@ class PhraseAppTranslator extends LaravelTranslator
|
||||||
/**
|
/**
|
||||||
* Get the translation for the given key.
|
* Get the translation for the given key.
|
||||||
*
|
*
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param array $replace
|
* @param array $replace
|
||||||
* @param string|null $locale
|
* @param string|null $locale
|
||||||
* @param bool $fallback
|
* @param bool $fallback
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get($key, array $replace = [], $locale = null, $fallback = true)
|
public function get($key, array $replace = [], $locale = null, $fallback = true)
|
||||||
|
|
|
@ -35,7 +35,7 @@ class LocationController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning all locations on the system.
|
* Controller to handle returning all locations on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
|
|
@ -40,7 +40,7 @@ class NodeController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning all nodes on the system.
|
* Controller to handle returning all nodes on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -63,8 +63,8 @@ class NodeController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display information about a single node on the system.
|
* Display information about a single node on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function view(Request $request, $id)
|
public function view(Request $request, $id)
|
||||||
|
@ -84,8 +84,8 @@ class NodeController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display information about a single node on the system.
|
* Display information about a single node on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function viewConfig(Request $request, $id)
|
public function viewConfig(Request $request, $id)
|
||||||
|
@ -100,7 +100,7 @@ class NodeController extends Controller
|
||||||
/**
|
/**
|
||||||
* Create a new node on the system.
|
* Create a new node on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\JsonResponse|array
|
* @return \Illuminate\Http\JsonResponse|array
|
||||||
*/
|
*/
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
|
@ -146,8 +146,8 @@ class NodeController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a node from the system.
|
* Delete a node from the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function delete(Request $request, $id)
|
public function delete(Request $request, $id)
|
||||||
|
|
|
@ -41,7 +41,7 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning all servers on the system.
|
* Controller to handle returning all servers on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -64,8 +64,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning information on a single server.
|
* Controller to handle returning information on a single server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function view(Request $request, $id)
|
public function view(Request $request, $id)
|
||||||
|
@ -87,7 +87,7 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Create a new server on the system.
|
* Create a new server on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\JsonResponse|array
|
* @return \Illuminate\Http\JsonResponse|array
|
||||||
*/
|
*/
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
|
@ -130,8 +130,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a server from the system.
|
* Delete a server from the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function delete(Request $request, $id)
|
public function delete(Request $request, $id)
|
||||||
|
@ -165,8 +165,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the details for a server.
|
* Update the details for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\JsonResponse|array
|
* @return \Illuminate\Http\JsonResponse|array
|
||||||
*/
|
*/
|
||||||
public function details(Request $request, $id)
|
public function details(Request $request, $id)
|
||||||
|
@ -205,8 +205,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Set the new docker container for a server.
|
* Set the new docker container for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\RedirectResponse|array
|
* @return \Illuminate\Http\RedirectResponse|array
|
||||||
*/
|
*/
|
||||||
public function container(Request $request, $id)
|
public function container(Request $request, $id)
|
||||||
|
@ -245,8 +245,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Toggles the install status for a server.
|
* Toggles the install status for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function install(Request $request, $id)
|
public function install(Request $request, $id)
|
||||||
|
@ -274,8 +274,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Setup a server to have a container rebuild.
|
* Setup a server to have a container rebuild.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function rebuild(Request $request, $id)
|
public function rebuild(Request $request, $id)
|
||||||
|
@ -302,8 +302,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Manage the suspension status for a server.
|
* Manage the suspension status for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function suspend(Request $request, $id)
|
public function suspend(Request $request, $id)
|
||||||
|
@ -344,8 +344,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the build configuration for a server.
|
* Update the build configuration for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\JsonResponse|array
|
* @return \Illuminate\Http\JsonResponse|array
|
||||||
*/
|
*/
|
||||||
public function build(Request $request, $id)
|
public function build(Request $request, $id)
|
||||||
|
@ -391,8 +391,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the startup command as well as variables.
|
* Update the startup command as well as variables.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function startup(Request $request, $id)
|
public function startup(Request $request, $id)
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning all locations on the system.
|
* Controller to handle returning all locations on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -52,8 +52,8 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning information on a single server.
|
* Controller to handle returning information on a single server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function view(Request $request, $id)
|
public function view(Request $request, $id)
|
||||||
|
|
|
@ -40,7 +40,7 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle returning all users on the system.
|
* Controller to handle returning all users on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -63,8 +63,8 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display information about a single user on the system.
|
* Display information about a single user on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function view(Request $request, $id)
|
public function view(Request $request, $id)
|
||||||
|
@ -84,7 +84,7 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Create a new user on the system.
|
* Create a new user on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\JsonResponse|array
|
* @return \Illuminate\Http\JsonResponse|array
|
||||||
*/
|
*/
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
|
@ -120,8 +120,8 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update a user.
|
* Update a user.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $user
|
* @param int $user
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function update(Request $request, $user)
|
public function update(Request $request, $user)
|
||||||
|
@ -157,8 +157,8 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a user from the system.
|
* Delete a user from the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function delete(Request $request, $id)
|
public function delete(Request $request, $id)
|
||||||
|
|
|
@ -34,7 +34,7 @@ class CoreController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle base user request for all of their servers.
|
* Controller to handle base user request for all of their servers.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
|
|
@ -37,8 +37,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle base request for individual server information.
|
* Controller to handle base request for individual server information.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $uuid
|
* @param string $uuid
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function index(Request $request, $uuid)
|
public function index(Request $request, $uuid)
|
||||||
|
@ -60,8 +60,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle request for server power toggle.
|
* Controller to handle request for server power toggle.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $uuid
|
* @param string $uuid
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function power(Request $request, $uuid)
|
public function power(Request $request, $uuid)
|
||||||
|
@ -80,8 +80,8 @@ class ServerController extends Controller
|
||||||
/**
|
/**
|
||||||
* Controller to handle base request for individual server information.
|
* Controller to handle base request for individual server information.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $uuid
|
* @param string $uuid
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function command(Request $request, $uuid)
|
public function command(Request $request, $uuid)
|
||||||
|
|
|
@ -70,7 +70,7 @@ class BaseController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle settings post request.
|
* Handle settings post request.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\BaseFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\BaseFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function postSettings(BaseFormRequest $request)
|
public function postSettings(BaseFormRequest $request)
|
||||||
|
|
|
@ -90,7 +90,7 @@ class DatabaseController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display database host to user.
|
* Display database host to user.
|
||||||
*
|
*
|
||||||
* @param int $host
|
* @param int $host
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -106,7 +106,7 @@ class DatabaseController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle request to create a new database host.
|
* Handle request to create a new database host.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\DatabaseHostFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\DatabaseHostFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
|
@ -128,8 +128,8 @@ class DatabaseController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle updating database host.
|
* Handle updating database host.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\DatabaseHostFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\DatabaseHostFormRequest $request
|
||||||
* @param \Pterodactyl\Models\DatabaseHost $host
|
* @param \Pterodactyl\Models\DatabaseHost $host
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -154,7 +154,7 @@ class DatabaseController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle request to delete a database host.
|
* Handle request to delete a database host.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\DatabaseHost $host
|
* @param \Pterodactyl\Models\DatabaseHost $host
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
|
|
@ -52,9 +52,9 @@ class LocationController extends Controller
|
||||||
/**
|
/**
|
||||||
* LocationController constructor.
|
* LocationController constructor.
|
||||||
*
|
*
|
||||||
* @param \Prologue\Alerts\AlertsMessageBag $alert
|
* @param \Prologue\Alerts\AlertsMessageBag $alert
|
||||||
* @param \Pterodactyl\Contracts\Repository\LocationRepositoryInterface $repository
|
* @param \Pterodactyl\Contracts\Repository\LocationRepositoryInterface $repository
|
||||||
* @param \Pterodactyl\Services\LocationService $service
|
* @param \Pterodactyl\Services\LocationService $service
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
AlertsMessageBag $alert,
|
AlertsMessageBag $alert,
|
||||||
|
@ -81,7 +81,7 @@ class LocationController extends Controller
|
||||||
/**
|
/**
|
||||||
* Return the location view page.
|
* Return the location view page.
|
||||||
*
|
*
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function view($id)
|
public function view($id)
|
||||||
|
@ -94,7 +94,7 @@ class LocationController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle request to create new location.
|
* Handle request to create new location.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\LocationFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\LocationFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
|
@ -111,8 +111,8 @@ class LocationController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle request to update or delete location.
|
* Handle request to update or delete location.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\LocationFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\LocationFormRequest $request
|
||||||
* @param \Pterodactyl\Models\Location $location
|
* @param \Pterodactyl\Models\Location $location
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
|
@ -133,7 +133,7 @@ class LocationController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a location from the system.
|
* Delete a location from the system.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Location $location
|
* @param \Pterodactyl\Models\Location $location
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
|
|
@ -126,7 +126,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Displays the index page listing all nodes on the panel.
|
* Displays the index page listing all nodes on the panel.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -139,7 +139,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Displays create new node page.
|
* Displays create new node page.
|
||||||
*
|
*
|
||||||
* @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
|
* @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
|
@ -156,7 +156,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Post controller to create a new node on the system.
|
* Post controller to create a new node on the system.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Node\NodeFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Node\NodeFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -172,7 +172,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Shows the index overview page for a specific node.
|
* Shows the index overview page for a specific node.
|
||||||
*
|
*
|
||||||
* @param int $node
|
* @param int $node
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -188,7 +188,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Shows the settings page for a specific node.
|
* Shows the settings page for a specific node.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Node $node
|
* @param \Pterodactyl\Models\Node $node
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewSettings(Node $node)
|
public function viewSettings(Node $node)
|
||||||
|
@ -202,7 +202,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Shows the configuration page for a specific node.
|
* Shows the configuration page for a specific node.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Node $node
|
* @param \Pterodactyl\Models\Node $node
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewConfiguration(Node $node)
|
public function viewConfiguration(Node $node)
|
||||||
|
@ -213,7 +213,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Shows the allocation page for a specific node.
|
* Shows the allocation page for a specific node.
|
||||||
*
|
*
|
||||||
* @param int $node
|
* @param int $node
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -229,7 +229,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Shows the server listing page for a specific node.
|
* Shows the server listing page for a specific node.
|
||||||
*
|
*
|
||||||
* @param int $node
|
* @param int $node
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -247,8 +247,8 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Updates settings for a node.
|
* Updates settings for a node.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Node\NodeFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Node\NodeFormRequest $request
|
||||||
* @param \Pterodactyl\Models\Node $node
|
* @param \Pterodactyl\Models\Node $node
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -265,8 +265,8 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Removes a single allocation from a node.
|
* Removes a single allocation from a node.
|
||||||
*
|
*
|
||||||
* @param int $node
|
* @param int $node
|
||||||
* @param int $allocation
|
* @param int $allocation
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function allocationRemoveSingle($node, $allocation)
|
public function allocationRemoveSingle($node, $allocation)
|
||||||
|
@ -283,8 +283,8 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Remove all allocations for a specific IP at once on a node.
|
* Remove all allocations for a specific IP at once on a node.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $node
|
* @param int $node
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function allocationRemoveBlock(Request $request, $node)
|
public function allocationRemoveBlock(Request $request, $node)
|
||||||
|
@ -304,7 +304,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Sets an alias for a specific allocation on a node.
|
* Sets an alias for a specific allocation on a node.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Node\AllocationAliasFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Node\AllocationAliasFormRequest $request
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
* @return \Symfony\Component\HttpFoundation\Response
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -322,8 +322,8 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Creates new allocations on a node.
|
* Creates new allocations on a node.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Node\AllocationFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Node\AllocationFormRequest $request
|
||||||
* @param int|\Pterodactyl\Models\Node $node
|
* @param int|\Pterodactyl\Models\Node $node
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -355,7 +355,7 @@ class NodesController extends Controller
|
||||||
/**
|
/**
|
||||||
* Returns the configuration token to auto-deploy a node.
|
* Returns the configuration token to auto-deploy a node.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Node $node
|
* @param \Pterodactyl\Models\Node $node
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function setToken(Node $node)
|
public function setToken(Node $node)
|
||||||
|
|
|
@ -122,7 +122,7 @@ class OptionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle adding a new service option.
|
* Handle adding a new service option.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceOptionFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceOptionFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -144,7 +144,7 @@ class OptionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a given option from the database.
|
* Delete a given option from the database.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Service\HasActiveServersException
|
* @throws \Pterodactyl\Exceptions\Service\HasActiveServersException
|
||||||
|
@ -160,7 +160,7 @@ class OptionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display option overview page.
|
* Display option overview page.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewConfiguration(ServiceOption $option)
|
public function viewConfiguration(ServiceOption $option)
|
||||||
|
@ -171,7 +171,7 @@ class OptionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display script management page for an option.
|
* Display script management page for an option.
|
||||||
*
|
*
|
||||||
* @param int $option
|
* @param int $option
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -196,8 +196,8 @@ class OptionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles POST when editing a configration for a service option.
|
* Handles POST when editing a configration for a service option.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -219,8 +219,8 @@ class OptionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles POST when updating script for a service option.
|
* Handles POST when updating script for a service option.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Service\EditOptionScript $request
|
* @param \Pterodactyl\Http\Requests\Admin\Service\EditOptionScript $request
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
|
|
@ -123,7 +123,7 @@ class PackController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display listing of all packs on the system.
|
* Display listing of all packs on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -188,7 +188,7 @@ class PackController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display pack view template to user.
|
* Display pack view template to user.
|
||||||
*
|
*
|
||||||
* @param int $pack
|
* @param int $pack
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function view($pack)
|
public function view($pack)
|
||||||
|
@ -202,8 +202,8 @@ class PackController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle updating or deleting pack information.
|
* Handle updating or deleting pack information.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\PackFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\PackFormRequest $request
|
||||||
* @param \Pterodactyl\Models\Pack $pack
|
* @param \Pterodactyl\Models\Pack $pack
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -221,7 +221,7 @@ class PackController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a pack if no servers are attached to it currently.
|
* Delete a pack if no servers are attached to it currently.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Pack $pack
|
* @param \Pterodactyl\Models\Pack $pack
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
@ -240,8 +240,8 @@ class PackController extends Controller
|
||||||
/**
|
/**
|
||||||
* Creates an archive of the pack and downloads it to the browser.
|
* Creates an archive of the pack and downloads it to the browser.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Pack $pack
|
* @param \Pterodactyl\Models\Pack $pack
|
||||||
* @param bool|string $files
|
* @param bool|string $files
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
* @return \Symfony\Component\HttpFoundation\Response
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
|
|
|
@ -245,7 +245,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle POST of server creation form.
|
* Handle POST of server creation form.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\ServerFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\ServerFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -262,7 +262,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Returns a tree of all avaliable nodes in a given location.
|
* Returns a tree of all avaliable nodes in a given location.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Support\Collection
|
* @return \Illuminate\Support\Collection
|
||||||
*/
|
*/
|
||||||
public function nodes(Request $request)
|
public function nodes(Request $request)
|
||||||
|
@ -273,7 +273,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display the index when viewing a specific server.
|
* Display the index when viewing a specific server.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewIndex(Server $server)
|
public function viewIndex(Server $server)
|
||||||
|
@ -284,7 +284,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display the details page when viewing a specific server.
|
* Display the details page when viewing a specific server.
|
||||||
*
|
*
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewDetails($server)
|
public function viewDetails($server)
|
||||||
|
@ -300,7 +300,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display the build details page when viewing a specific server.
|
* Display the build details page when viewing a specific server.
|
||||||
*
|
*
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewBuild($server)
|
public function viewBuild($server)
|
||||||
|
@ -322,7 +322,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display startup configuration page for a server.
|
* Display startup configuration page for a server.
|
||||||
*
|
*
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewStartup($server)
|
public function viewStartup($server)
|
||||||
|
@ -352,7 +352,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display the database management page for a specific server.
|
* Display the database management page for a specific server.
|
||||||
*
|
*
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewDatabase($server)
|
public function viewDatabase($server)
|
||||||
|
@ -368,7 +368,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display the management page when viewing a specific server.
|
* Display the management page when viewing a specific server.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewManage(Server $server)
|
public function viewManage(Server $server)
|
||||||
|
@ -379,7 +379,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display the deletion page for a server.
|
* Display the deletion page for a server.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewDelete(Server $server)
|
public function viewDelete(Server $server)
|
||||||
|
@ -390,8 +390,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the details for a server.
|
* Update the details for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -411,8 +411,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Set the new docker container for a server.
|
* Set the new docker container for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -429,7 +429,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Toggles the install status for a server.
|
* Toggles the install status for a server.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -453,7 +453,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Reinstalls the server with the currently assigned pack and service.
|
* Reinstalls the server with the currently assigned pack and service.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -471,7 +471,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Setup a server to have a container rebuild.
|
* Setup a server to have a container rebuild.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -487,8 +487,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Manage the suspension status for a server.
|
* Manage the suspension status for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -507,7 +507,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the build configuration for a server.
|
* Update the build configuration for a server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -528,8 +528,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Start the server deletion process.
|
* Start the server deletion process.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -545,7 +545,7 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the startup command as well as variables.
|
* Update the startup command as well as variables.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\Server $server
|
* @param \Pterodactyl\Models\Server $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
|
@ -555,7 +555,8 @@ class ServersController extends Controller
|
||||||
public function saveStartup(Request $request, Server $server)
|
public function saveStartup(Request $request, Server $server)
|
||||||
{
|
{
|
||||||
$this->startupModificationService->isAdmin()->handle(
|
$this->startupModificationService->isAdmin()->handle(
|
||||||
$server, $request->except('_token')
|
$server,
|
||||||
|
$request->except('_token')
|
||||||
);
|
);
|
||||||
$this->alert->success(trans('admin/server.alerts.startup_changed'))->flash();
|
$this->alert->success(trans('admin/server.alerts.startup_changed'))->flash();
|
||||||
|
|
||||||
|
@ -565,8 +566,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Creates a new database assigned to a specific server.
|
* Creates a new database assigned to a specific server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -587,8 +588,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Resets the database password for a specific database on this server.
|
* Resets the database password for a specific database on this server.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -609,8 +610,8 @@ class ServersController extends Controller
|
||||||
/**
|
/**
|
||||||
* Deletes a database from a server.
|
* Deletes a database from a server.
|
||||||
*
|
*
|
||||||
* @param int $server
|
* @param int $server
|
||||||
* @param int $database
|
* @param int $database
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
|
|
@ -100,7 +100,7 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Return base view for a service.
|
* Return base view for a service.
|
||||||
*
|
*
|
||||||
* @param int $service
|
* @param int $service
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function view($service)
|
public function view($service)
|
||||||
|
@ -113,7 +113,7 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Return function editing view for a service.
|
* Return function editing view for a service.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Service $service
|
* @param \Pterodactyl\Models\Service $service
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function viewFunctions(Service $service)
|
public function viewFunctions(Service $service)
|
||||||
|
@ -124,7 +124,7 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle post action for new service.
|
* Handle post action for new service.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -140,8 +140,8 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Edits configuration for a specific service.
|
* Edits configuration for a specific service.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceFormRequest $request
|
||||||
* @param \Pterodactyl\Models\Service $service
|
* @param \Pterodactyl\Models\Service $service
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -158,8 +158,8 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update the functions file for a service.
|
* Update the functions file for a service.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceFunctionsFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\Service\ServiceFunctionsFormRequest $request
|
||||||
* @param \Pterodactyl\Models\Service $service
|
* @param \Pterodactyl\Models\Service $service
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -176,7 +176,7 @@ class ServiceController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a service from the panel.
|
* Delete a service from the panel.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\Service $service
|
* @param \Pterodactyl\Models\Service $service
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Service\HasActiveServersException
|
* @throws \Pterodactyl\Exceptions\Service\HasActiveServersException
|
||||||
|
|
|
@ -71,12 +71,12 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* UserController constructor.
|
* UserController constructor.
|
||||||
*
|
*
|
||||||
* @param \Prologue\Alerts\AlertsMessageBag $alert
|
* @param \Prologue\Alerts\AlertsMessageBag $alert
|
||||||
* @param \Pterodactyl\Services\Users\CreationService $creationService
|
* @param \Pterodactyl\Services\Users\CreationService $creationService
|
||||||
* @param \Pterodactyl\Services\Users\DeletionService $deletionService
|
* @param \Pterodactyl\Services\Users\DeletionService $deletionService
|
||||||
* @param \Illuminate\Contracts\Translation\Translator $translator
|
* @param \Illuminate\Contracts\Translation\Translator $translator
|
||||||
* @param \Pterodactyl\Services\Users\UpdateService $updateService
|
* @param \Pterodactyl\Services\Users\UpdateService $updateService
|
||||||
* @param \Pterodactyl\Contracts\Repository\UserRepositoryInterface $repository
|
* @param \Pterodactyl\Contracts\Repository\UserRepositoryInterface $repository
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
AlertsMessageBag $alert,
|
AlertsMessageBag $alert,
|
||||||
|
@ -97,7 +97,7 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display user index page.
|
* Display user index page.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -120,7 +120,7 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display user view page.
|
* Display user view page.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function view(User $user)
|
public function view(User $user)
|
||||||
|
@ -131,8 +131,8 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a user from the system.
|
* Delete a user from the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -152,7 +152,7 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Create a user.
|
* Create a user.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\UserFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\UserFormRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -169,8 +169,8 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update a user on the system.
|
* Update a user on the system.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\UserFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\UserFormRequest $request
|
||||||
* @param \Pterodactyl\Models\User $user
|
* @param \Pterodactyl\Models\User $user
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -186,7 +186,7 @@ class UserController extends Controller
|
||||||
/**
|
/**
|
||||||
* Get a JSON response of users on the system.
|
* Get a JSON response of users on the system.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Database\Eloquent\Collection
|
* @return \Illuminate\Database\Eloquent\Collection
|
||||||
*/
|
*/
|
||||||
public function json(Request $request)
|
public function json(Request $request)
|
||||||
|
|
|
@ -78,8 +78,8 @@ class VariableController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles POST request to create a new option variable.
|
* Handles POST request to create a new option variable.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\OptionVariableFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\OptionVariableFormRequest $request
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||||
|
@ -96,7 +96,7 @@ class VariableController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display variable overview page for a service option.
|
* Display variable overview page for a service option.
|
||||||
*
|
*
|
||||||
* @param int $option
|
* @param int $option
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function view($option)
|
public function view($option)
|
||||||
|
@ -109,9 +109,9 @@ class VariableController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles POST when editing a configration for a service variable.
|
* Handles POST when editing a configration for a service variable.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\Admin\OptionVariableFormRequest $request
|
* @param \Pterodactyl\Http\Requests\Admin\OptionVariableFormRequest $request
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @param \Pterodactyl\Models\ServiceVariable $variable
|
* @param \Pterodactyl\Models\ServiceVariable $variable
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||||
|
@ -132,8 +132,8 @@ class VariableController extends Controller
|
||||||
/**
|
/**
|
||||||
* Delete a service variable from the system.
|
* Delete a service variable from the system.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Models\ServiceOption $option
|
* @param \Pterodactyl\Models\ServiceOption $option
|
||||||
* @param \Pterodactyl\Models\ServiceVariable $variable
|
* @param \Pterodactyl\Models\ServiceVariable $variable
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function delete(ServiceOption $option, ServiceVariable $variable)
|
public function delete(ServiceOption $option, ServiceVariable $variable)
|
||||||
|
|
|
@ -47,8 +47,6 @@ class ForgotPasswordController extends Controller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
@ -59,7 +57,7 @@ class ForgotPasswordController extends Controller
|
||||||
* Get the response for a failed password reset link.
|
* Get the response for a failed password reset link.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request
|
* @param \Illuminate\Http\Request
|
||||||
* @param string $response
|
* @param string $response
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
protected function sendResetLinkFailedResponse(Request $request, $response)
|
protected function sendResetLinkFailedResponse(Request $request, $response)
|
||||||
|
|
|
@ -71,8 +71,6 @@ class LoginController extends Controller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
@ -82,7 +80,7 @@ class LoginController extends Controller
|
||||||
/**
|
/**
|
||||||
* Get the failed login response instance.
|
* Get the failed login response instance.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
protected function sendFailedLoginResponse(Request $request)
|
protected function sendFailedLoginResponse(Request $request)
|
||||||
|
@ -103,7 +101,7 @@ class LoginController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle a login request to the application.
|
* Handle a login request to the application.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\Response|\Illuminate\Response\RedirectResponse
|
* @return \Illuminate\Http\Response|\Illuminate\Response\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function login(Request $request)
|
public function login(Request $request)
|
||||||
|
@ -156,7 +154,7 @@ class LoginController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle a TOTP implementation page.
|
* Handle a TOTP implementation page.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
|
* @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function totp(Request $request)
|
public function totp(Request $request)
|
||||||
|
@ -176,7 +174,7 @@ class LoginController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle a TOTP input.
|
* Handle a TOTP input.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function totpCheckpoint(Request $request)
|
public function totpCheckpoint(Request $request)
|
||||||
|
|
|
@ -31,8 +31,6 @@ class RegisterController extends Controller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
@ -42,7 +40,7 @@ class RegisterController extends Controller
|
||||||
/**
|
/**
|
||||||
* Get a validator for an incoming registration request.
|
* Get a validator for an incoming registration request.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return \Illuminate\Contracts\Validation\Validator
|
* @return \Illuminate\Contracts\Validation\Validator
|
||||||
*/
|
*/
|
||||||
protected function validator(array $data)
|
protected function validator(array $data)
|
||||||
|
@ -57,7 +55,7 @@ class RegisterController extends Controller
|
||||||
/**
|
/**
|
||||||
* Create a new user instance after a valid registration.
|
* Create a new user instance after a valid registration.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return User
|
* @return User
|
||||||
*/
|
*/
|
||||||
protected function create(array $data)
|
protected function create(array $data)
|
||||||
|
|
|
@ -30,8 +30,6 @@ class ResetPasswordController extends Controller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,7 +71,7 @@ class APIController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display base API index page.
|
* Display base API index page.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -99,7 +99,7 @@ class APIController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handle saving new API key.
|
* Handle saving new API key.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Requests\ApiKeyRequest $request
|
* @param \Pterodactyl\Http\Requests\ApiKeyRequest $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
@ -128,8 +128,8 @@ class APIController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
|
|
|
@ -38,7 +38,7 @@ class AccountController extends Controller
|
||||||
/**
|
/**
|
||||||
* Display base account information page.
|
* Display base account information page.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -49,7 +49,7 @@ class AccountController extends Controller
|
||||||
/**
|
/**
|
||||||
* Update details for a users account.
|
* Update details for a users account.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
|
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,7 +34,7 @@ class IndexController extends Controller
|
||||||
/**
|
/**
|
||||||
* Returns listing of user's servers.
|
* Returns listing of user's servers.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function getIndex(Request $request)
|
public function getIndex(Request $request)
|
||||||
|
@ -53,8 +53,8 @@ class IndexController extends Controller
|
||||||
/**
|
/**
|
||||||
* Generate a random string.
|
* Generate a random string.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $length
|
* @param int $length
|
||||||
* @return string
|
* @return string
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@ -76,8 +76,8 @@ class IndexController extends Controller
|
||||||
/**
|
/**
|
||||||
* Returns status of the server in a JSON response used for populating active status list.
|
* Returns status of the server in a JSON response used for populating active status list.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $uuid
|
* @param string $uuid
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function status(Request $request, $uuid)
|
public function status(Request $request, $uuid)
|
||||||
|
@ -102,7 +102,6 @@ class IndexController extends Controller
|
||||||
return response()->json(json_decode($res->getBody()));
|
return response()->json(json_decode($res->getBody()));
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json([]);
|
return response()->json([]);
|
||||||
|
|
|
@ -51,8 +51,8 @@ class LanguageController extends Controller
|
||||||
/**
|
/**
|
||||||
* Sets the language for a user.
|
* Sets the language for a user.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $language
|
* @param string $language
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function setLanguage(Request $request, $language)
|
public function setLanguage(Request $request, $language)
|
||||||
|
|
|
@ -36,7 +36,7 @@ class SecurityController extends Controller
|
||||||
/**
|
/**
|
||||||
* Returns Security Management Page.
|
* Returns Security Management Page.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\View\View
|
* @return \Illuminate\View\View
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
|
@ -50,7 +50,7 @@ class SecurityController extends Controller
|
||||||
* Generates TOTP Secret and returns popup data for user to verify
|
* Generates TOTP Secret and returns popup data for user to verify
|
||||||
* that they can generate a valid response.
|
* that they can generate a valid response.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function generateTotp(Request $request)
|
public function generateTotp(Request $request)
|
||||||
|
@ -73,7 +73,7 @@ class SecurityController extends Controller
|
||||||
/**
|
/**
|
||||||
* Verifies that 2FA token recieved is valid and will work on the account.
|
* Verifies that 2FA token recieved is valid and will work on the account.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function setTotp(Request $request)
|
public function setTotp(Request $request)
|
||||||
|
@ -95,7 +95,7 @@ class SecurityController extends Controller
|
||||||
/**
|
/**
|
||||||
* Disables TOTP on an account.
|
* Disables TOTP on an account.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function disableTotp(Request $request)
|
public function disableTotp(Request $request)
|
||||||
|
@ -119,8 +119,8 @@ class SecurityController extends Controller
|
||||||
/**
|
/**
|
||||||
* Revokes a user session.
|
* Revokes a user session.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\RedirectResponse
|
* @return \Illuminate\Http\RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function revoke(Request $request, $id)
|
public function revoke(Request $request, $id)
|
||||||
|
|
|
@ -35,7 +35,7 @@ class ActionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles download request from daemon.
|
* Handles download request from daemon.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function authenticateDownload(Request $request)
|
public function authenticateDownload(Request $request)
|
||||||
|
@ -57,7 +57,7 @@ class ActionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles install toggle request from daemon.
|
* Handles install toggle request from daemon.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function markInstall(Request $request)
|
public function markInstall(Request $request)
|
||||||
|
@ -87,8 +87,8 @@ class ActionController extends Controller
|
||||||
/**
|
/**
|
||||||
* Handles configuration data request from daemon.
|
* Handles configuration data request from daemon.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Http\Request $request
|
* @param \Illuminate\Http\Request $request
|
||||||
* @param string $token
|
* @param string $token
|
||||||
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
|
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function configuration(Request $request, $token)
|
public function configuration(Request $request, $token)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue