浏览代码

Fix MacError on MakeUser

1day2die 2 年之前
父节点
当前提交
023772d929
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Console/Commands/MakeUserCommand.php

+ 3 - 3
app/Console/Commands/MakeUserCommand.php

@@ -35,10 +35,9 @@ class MakeUserCommand extends Command
      *
      *
      * @return void
      * @return void
      */
      */
-    public function __construct(PterodactylSettings $ptero_settings)
+    public function __construct()
     {
     {
         parent::__construct();
         parent::__construct();
-        $this->pterodactyl = new PterodactylClient($ptero_settings);
     }
     }
 
 
 
 
@@ -47,8 +46,9 @@ class MakeUserCommand extends Command
      *
      *
      * @return int
      * @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.');
         $ptero_id = $this->option('ptero_id') ?? $this->ask('Please specify your Pterodactyl ID.');
         $password = $this->secret('password') ?? $this->ask('Please specify your password.');
         $password = $this->secret('password') ?? $this->ask('Please specify your password.');