From a9b4746fd74097da6e7b63e90624b84d71f6d6ca Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Mon, 24 Jun 2024 12:00:30 -0400 Subject: [PATCH] [5.x] Remove old logic from support details command (#10360) --- src/Console/Commands/SupportDetails.php | 36 ------------------------- 1 file changed, 36 deletions(-) diff --git a/src/Console/Commands/SupportDetails.php b/src/Console/Commands/SupportDetails.php index deda848ec0..a68abdf945 100644 --- a/src/Console/Commands/SupportDetails.php +++ b/src/Console/Commands/SupportDetails.php @@ -3,11 +3,7 @@ namespace Statamic\Console\Commands; use Illuminate\Console\Command; -use Illuminate\Foundation\Application; -use Illuminate\Foundation\Console\AboutCommand; use Statamic\Console\RunsInPlease; -use Statamic\Facades\Addon; -use Statamic\Statamic; class SupportDetails extends Command { @@ -17,38 +13,6 @@ class SupportDetails extends Command protected $description = 'Outputs details helpful for support requests'; public function handle() - { - return class_exists(AboutCommand::class) - ? $this->handleUsingAboutCommand() - : $this->handleUsingStatamic(); - } - - private function handleUsingStatamic() - { - $this->line(sprintf('Statamic %s %s', Statamic::version(), Statamic::pro() ? 'Pro' : 'Solo')); - $this->line('Laravel '.Application::VERSION); - $this->line('PHP '.phpversion()); - $this->line(sprintf('Stache Watcher %s', config('statamic.stache.watcher') ? 'Enabled' : 'Disabled')); - $this->line(sprintf('Static Caching %s', config('statamic.static_caching.strategy') ?: 'Disabled')); - $this->addons(); - - return static::SUCCESS; - } - - private function addons() - { - $addons = Addon::all(); - - if ($addons->isEmpty()) { - return $this->line('No addons installed'); - } - - foreach ($addons as $addon) { - $this->line(sprintf('%s %s', $addon->package(), $addon->version())); - } - } - - private function handleUsingAboutCommand() { $this->replaceView();