Upgrade to Laravel 9 (#4413)

Co-authored-by: DaneEveritt <dane@daneeveritt.com>
This commit is contained in:
Matthew Penner 2022-10-14 10:59:20 -06:00 committed by GitHub
parent 95e15d2c8a
commit cbcf62086f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
573 changed files with 4387 additions and 9411 deletions

View file

@ -10,17 +10,11 @@ use Pterodactyl\Contracts\Repository\EggRepositoryInterface;
class EggExporterService
{
/**
* @var \Pterodactyl\Contracts\Repository\EggRepositoryInterface
*/
protected $repository;
/**
* EggExporterService constructor.
*/
public function __construct(EggRepositoryInterface $repository)
public function __construct(protected EggRepositoryInterface $repository)
{
$this->repository = $repository;
}
/**
@ -38,7 +32,7 @@ class EggExporterService
'version' => Egg::EXPORT_VERSION,
'update_url' => $egg->update_url,
],
'exported_at' => Carbon::now()->toIso8601String(),
'exported_at' => Carbon::now()->toAtomString(),
'name' => $egg->name,
'author' => $egg->author,
'description' => $egg->description,

View file

@ -13,14 +13,8 @@ use Pterodactyl\Services\Eggs\EggParserService;
class EggImporterService
{
protected ConnectionInterface $connection;
protected EggParserService $parser;
public function __construct(ConnectionInterface $connection, EggParserService $parser)
public function __construct(protected ConnectionInterface $connection, protected EggParserService $parser)
{
$this->connection = $connection;
$this->parser = $parser;
}
/**

View file

@ -11,17 +11,11 @@ use Pterodactyl\Services\Eggs\EggParserService;
class EggUpdateImporterService
{
protected ConnectionInterface $connection;
protected EggParserService $parser;
/**
* EggUpdateImporterService constructor.
*/
public function __construct(ConnectionInterface $connection, EggParserService $parser)
public function __construct(protected ConnectionInterface $connection, protected EggParserService $parser)
{
$this->connection = $connection;
$this->parser = $parser;
}
/**