Skip to content

Commit f0a891a

Browse files
authored
[1.x] Make commands lazy (#135)
* Make commands lazy * Fix soft dependency
1 parent cfb7d9a commit f0a891a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"illuminate/routing": "^10.19|^11.0",
2525
"illuminate/support": "^10.19|^11.0",
2626
"illuminate/view": "^10.19|^11.0",
27-
"spatie/once": "^3.1"
27+
"spatie/once": "^3.1",
28+
"symfony/console": "^6.0|^7.0"
2829
},
2930
"require-dev": {
3031
"orchestra/testbench": "^8.6.0|^9.0",

src/Console/InstallCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
use Illuminate\Support\Facades\File;
77
use Illuminate\Support\ServiceProvider;
88
use Illuminate\Support\Str;
9+
use Symfony\Component\Console\Attribute\AsCommand;
910

11+
#[AsCommand(name: 'folio:install')]
1012
class InstallCommand extends Command
1113
{
1214
/**

0 commit comments

Comments
 (0)