From 562b5aeecff47358017f54007cb913527684545f Mon Sep 17 00:00:00 2001 From: freek Date: Fri, 22 Jul 2016 00:11:53 +0200 Subject: [PATCH] remove artisan handlers --- src/Handlers/Artisan.php | 22 ---------------------- src/Jobs/ArtisanJob.php | 28 ---------------------------- 2 files changed, 50 deletions(-) delete mode 100644 src/Handlers/Artisan.php delete mode 100644 src/Jobs/ArtisanJob.php diff --git a/src/Handlers/Artisan.php b/src/Handlers/Artisan.php deleted file mode 100644 index 45cfd73..0000000 --- a/src/Handlers/Artisan.php +++ /dev/null @@ -1,22 +0,0 @@ -dispatch(new ArtisanJob()); - - return $this->respondToSlack('Performing artisan command...'); - } - - public function canHandle(Request $request): bool - { - return starts_with($request->text, 'artisan'); - } -} diff --git a/src/Jobs/ArtisanJob.php b/src/Jobs/ArtisanJob.php deleted file mode 100644 index 59fec31..0000000 --- a/src/Jobs/ArtisanJob.php +++ /dev/null @@ -1,28 +0,0 @@ -request->text, 8); - - try { - Artisan::call($artisanCommand, []); - - $this->respondToSlack(Artisan::output())->send(); - } catch (CommandNotFoundException $exception) { - $this->respondToSlack('Whoops... something went wrong!') - ->withAttachment(Attachment::create() - ->setColor('danger') - ->setText("The Artisan command `{$artisanCommand}` does not exist.") - ) - ->send(); - } - } -}