Skip to content

Commit e0d8694

Browse files
authored
[15.x] Make commands lazy (#1667)
* Make commands lazy * Fix soft dependency
1 parent c9c3e86 commit e0d8694

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"moneyphp/money": "^4.0",
3434
"nesbot/carbon": "^2.0|^3.0",
3535
"stripe/stripe-php": "^13.0",
36+
"symfony/console": "^6.0|^7.0",
3637
"symfony/http-kernel": "^6.0|^7.0",
3738
"symfony/polyfill-intl-icu": "^1.22.1"
3839
},

src/Console/WebhookCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
use Illuminate\Console\Command;
66
use Laravel\Cashier\Cashier;
7+
use Symfony\Component\Console\Attribute\AsCommand;
78

9+
#[AsCommand(name: 'cashier:webhook')]
810
class WebhookCommand extends Command
911
{
1012
public const DEFAULT_EVENTS = [

0 commit comments

Comments
 (0)