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
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue