Skip to content

Commit

Permalink
[1.x] Make commands lazy (#683)
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 9d14355 commit db4a3f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -18,6 +18,7 @@
"illuminate/console": "^9.52.16|^10.0|^11.0",
"illuminate/contracts": "^9.52.16|^10.0|^11.0",
"illuminate/support": "^9.52.16|^10.0|^11.0",
"symfony/console": "^6.0|^7.0",
"symfony/yaml": "^6.0|^7.0"
},
"bin": [
Expand Down
2 changes: 2 additions & 0 deletions src/Console/AddCommand.php
Expand Up @@ -4,7 +4,9 @@

use Illuminate\Console\Command;
use Laravel\Sail\Console\Concerns\InteractsWithDockerComposeServices;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'sail:add')]
class AddCommand extends Command
{
use InteractsWithDockerComposeServices;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/InstallCommand.php
Expand Up @@ -4,8 +4,10 @@

use Illuminate\Console\Command;
use RuntimeException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Process\Process;

#[AsCommand(name: 'sail:install')]
class InstallCommand extends Command
{
use Concerns\InteractsWithDockerComposeServices;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/PublishCommand.php
Expand Up @@ -3,7 +3,9 @@
namespace Laravel\Sail\Console;

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

#[AsCommand(name: 'sail:publish')]
class PublishCommand extends Command
{
/**
Expand Down

0 comments on commit db4a3f2

Please sign in to comment.