Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
This commit is contained in:
parent
95e15d2c8a
commit
cbcf62086f
573 changed files with 4387 additions and 9411 deletions
|
@ -13,23 +13,11 @@ class DetailsModificationService
|
|||
{
|
||||
use ReturnsUpdatedModels;
|
||||
|
||||
/**
|
||||
* @var \Illuminate\Database\ConnectionInterface
|
||||
*/
|
||||
private $connection;
|
||||
|
||||
/**
|
||||
* @var \Pterodactyl\Repositories\Wings\DaemonServerRepository
|
||||
*/
|
||||
private $serverRepository;
|
||||
|
||||
/**
|
||||
* DetailsModificationService constructor.
|
||||
*/
|
||||
public function __construct(ConnectionInterface $connection, DaemonServerRepository $serverRepository)
|
||||
public function __construct(private ConnectionInterface $connection, private DaemonServerRepository $serverRepository)
|
||||
{
|
||||
$this->connection = $connection;
|
||||
$this->serverRepository = $serverRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -57,7 +45,7 @@ class DetailsModificationService
|
|||
$this->serverRepository->setServer($server)->revokeUserJTI($owner);
|
||||
} catch (DaemonConnectionException $exception) {
|
||||
// Do nothing. A failure here is not ideal, but it is likely to be caused by Wings
|
||||
// being offline, or in an entirely broken state. Remeber, these tokens reset every
|
||||
// being offline, or in an entirely broken state. Remember, these tokens reset every
|
||||
// few minutes by default, we're just trying to help it along a little quicker.
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue