Skip to content

Commit

Permalink
[4.x] Make commands lazy (#502)
Browse files Browse the repository at this point in the history
* Make commands lazy

* Fix soft dependency
  • Loading branch information
timacdonald authored Mar 19, 2024
1 parent d022fbf commit d1de99b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"illuminate/console": "^11.0",
"illuminate/contracts": "^11.0",
"illuminate/database": "^11.0",
"illuminate/support": "^11.0"
"illuminate/support": "^11.0",
"symfony/console": "^7.0"
},
"require-dev": {
"mockery/mockery": "^1.6",
Expand Down
2 changes: 2 additions & 0 deletions src/Console/Commands/PruneExpired.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use Illuminate\Console\Command;
use Laravel\Sanctum\Sanctum;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'sanctum:prune-expired')]
class PruneExpired extends Command
{
/**
Expand Down

0 comments on commit d1de99b

Please sign in to comment.