From f669ff5de895104c0ed5f7687b79177f5e9993ac Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 19 Mar 2024 13:37:03 +1100 Subject: [PATCH 1/2] Make commands lazy --- src/Console/InstallCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index f83d3d3..028e4a9 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -6,7 +6,9 @@ use Illuminate\Support\Facades\File; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Str; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'folio:install')] class InstallCommand extends Command { /** From 01a7949525be6c1543d4b45c9f0c377a6e659ea0 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 19 Mar 2024 13:37:16 +1100 Subject: [PATCH 2/2] Fix soft dependency --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 28a2c89..53e7065 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,8 @@ "illuminate/routing": "^10.19|^11.0", "illuminate/support": "^10.19|^11.0", "illuminate/view": "^10.19|^11.0", - "spatie/once": "^3.1" + "spatie/once": "^3.1", + "symfony/console": "^6.0|^7.0" }, "require-dev": { "orchestra/testbench": "^8.6.0|^9.0",