Skip to content

Commit

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

* Fix soft dependency
  • Loading branch information
timacdonald committed Mar 19, 2024
1 parent 2c51bd3 commit 33b3a7c
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/support": "^11.0",
"laravel/fortify": "^1.20",
"mobiledetect/mobiledetectlib": "^4.8"
"mobiledetect/mobiledetectlib": "^4.8",
"symfony/console": "^7.0"
},
"require-dev": {
"inertiajs/inertia-laravel": "^1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use RuntimeException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Finder\Finder;
Expand All @@ -20,6 +21,7 @@
use function Laravel\Prompts\multiselect;
use function Laravel\Prompts\select;

#[AsCommand(name: 'jetstream:install')]
class InstallCommand extends Command implements PromptsForMissingInput
{
/**
Expand Down

0 comments on commit 33b3a7c

Please sign in to comment.