Skip to content

Commit 5dda9ab

Browse files
authored
[1.x] Make commands lazy (#32)
* Make commands lazy * Fix soft dependency
1 parent fc1ace6 commit 5dda9ab

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
@@ -27,7 +27,8 @@
2727
"illuminate/log": "^10.24|^11.0",
2828
"illuminate/process": "^10.24|^11.0",
2929
"illuminate/support": "^10.24|^11.0",
30-
"nunomaduro/termwind": "^1.15|^2.0"
30+
"nunomaduro/termwind": "^1.15|^2.0",
31+
"symfony/console": "^6.0|^7.0"
3132
},
3233
"require-dev": {
3334
"laravel/pint": "^1.13",

src/Console/Commands/PailCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
use Laravel\Pail\Guards\EnsurePcntlIsAvailable;
99
use Laravel\Pail\Options;
1010
use Laravel\Pail\ProcessFactory;
11+
use Symfony\Component\Console\Attribute\AsCommand;
1112
use Symfony\Component\Process\Exception\ProcessSignaledException;
1213

1314
use function Termwind\render;
1415
use function Termwind\renderUsing;
1516

17+
#[AsCommand(name: 'pail')]
1618
class PailCommand extends Command
1719
{
1820
/**

0 commit comments

Comments
 (0)