From 84936ae63fe95ec3a949a43f79a7c843feec0fac Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Fri, 18 Jun 2021 13:13:51 +0200 Subject: [PATCH] Remove share files command for now --- app/Commands/ShareFilesCommand.php | 37 ------------------------------ 1 file changed, 37 deletions(-) delete mode 100644 app/Commands/ShareFilesCommand.php diff --git a/app/Commands/ShareFilesCommand.php b/app/Commands/ShareFilesCommand.php deleted file mode 100644 index 52c5995..0000000 --- a/app/Commands/ShareFilesCommand.php +++ /dev/null @@ -1,37 +0,0 @@ -argument('folder'))) { - throw new \InvalidArgumentException('The folder '.$this->argument('folder').' does not exist.'); - } - - $auth = $this->option('auth') ?? config('expose.auth_token', ''); - - (new Factory()) - ->setLoop(app(LoopInterface::class)) - ->setHost($this->getServerHost()) - ->setPort($this->getServerPort()) - ->setAuth($auth) - ->createClient() - ->shareFolder( - $this->argument('folder'), - $this->option('name') ?? '', - explode(',', $this->option('subdomain')), - $this->option('domain') - ) - ->createHttpServer() - ->run(); - } -}