From dbf9a9464e20b4653672c0332cb884e6affc5907 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 19 Mar 2024 12:15:01 +1100 Subject: [PATCH 1/2] Make commands lazy --- src/Console/WebhookCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Console/WebhookCommand.php b/src/Console/WebhookCommand.php index 5a54da9c..e695ff8f 100644 --- a/src/Console/WebhookCommand.php +++ b/src/Console/WebhookCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Cashier\Cashier; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'cashier:webhook')] class WebhookCommand extends Command { public const DEFAULT_EVENTS = [ From 6df3cfa61423e52c02b4e3cbb242f995663f925e Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 19 Mar 2024 12:15:07 +1100 Subject: [PATCH 2/2] Fix soft dependency --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 5360c48e..b4a4441e 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,7 @@ "moneyphp/money": "^4.0", "nesbot/carbon": "^2.0|^3.0", "stripe/stripe-php": "^13.0", + "symfony/console": "^6.0|^7.0", "symfony/http-kernel": "^6.0|^7.0", "symfony/polyfill-intl-icu": "^1.22.1" },