From 023772d929f0dbe7f9d0cc61f084cb550e0185c7 Mon Sep 17 00:00:00 2001 From: 1day2die Date: Thu, 20 Apr 2023 23:07:01 +0200 Subject: [PATCH] Fix MacError on MakeUser --- app/Console/Commands/MakeUserCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/MakeUserCommand.php b/app/Console/Commands/MakeUserCommand.php index bef0a6a0..0932f9f2 100644 --- a/app/Console/Commands/MakeUserCommand.php +++ b/app/Console/Commands/MakeUserCommand.php @@ -35,10 +35,9 @@ class MakeUserCommand extends Command * * @return void */ - public function __construct(PterodactylSettings $ptero_settings) + public function __construct() { parent::__construct(); - $this->pterodactyl = new PterodactylClient($ptero_settings); } @@ -47,8 +46,9 @@ class MakeUserCommand extends Command * * @return int */ - public function handle() + public function handle(PterodactylSettings $ptero_settings) { + $this->pterodactyl = new PterodactylClient($ptero_settings); $ptero_id = $this->option('ptero_id') ?? $this->ask('Please specify your Pterodactyl ID.'); $password = $this->secret('password') ?? $this->ask('Please specify your password.');