Skip to content

Commit b80c301

Browse files
committed
Make commands lazy
1 parent 8b44c42 commit b80c301

7 files changed

+13
-0
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"php": "^8.0",
1818
"ext-json": "*",
1919
"laravel/framework": "^8.37|^9.0|^10.0|^11.0",
20+
"symfony/console": "^5.3|^6.0|^7.0",
2021
"symfony/var-dumper": "^5.0|^6.0|^7.0"
2122
},
2223
"require-dev": {

src/Console/ClearCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
use Illuminate\Console\Command;
66
use Laravel\Telescope\Contracts\ClearableRepository;
7+
use Symfony\Component\Console\Attribute\AsCommand;
78

9+
#[AsCommand(name: 'telescope:clear')]
810
class ClearCommand extends Command
911
{
1012
/**

src/Console/InstallCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Support\ServiceProvider;
77
use Illuminate\Support\Str;
8+
use Symfony\Component\Console\Attribute\AsCommand;
89

10+
#[AsCommand(name: 'telescope:install')]
911
class InstallCommand extends Command
1012
{
1113
/**

src/Console/PauseCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
use Illuminate\Console\Command;
66
use Illuminate\Contracts\Cache\Repository as CacheRepository;
7+
use Symfony\Component\Console\Attribute\AsCommand;
78

9+
#[AsCommand(name: 'telescope:pause')]
810
class PauseCommand extends Command
911
{
1012
/**

src/Console/PruneCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
use Illuminate\Console\Command;
66
use Laravel\Telescope\Contracts\PrunableRepository;
7+
use Symfony\Component\Console\Attribute\AsCommand;
78

9+
#[AsCommand(name: 'telescope:prune')]
810
class PruneCommand extends Command
911
{
1012
/**

src/Console/PublishCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
namespace Laravel\Telescope\Console;
44

55
use Illuminate\Console\Command;
6+
use Symfony\Component\Console\Attribute\AsCommand;
67

8+
#[AsCommand(name: 'telescope:publish')]
79
class PublishCommand extends Command
810
{
911
/**

src/Console/ResumeCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
use Illuminate\Console\Command;
66
use Illuminate\Contracts\Cache\Repository as CacheRepository;
7+
use Symfony\Component\Console\Attribute\AsCommand;
78

9+
#[AsCommand(name: 'telescope:resume')]
810
class ResumeCommand extends Command
911
{
1012
/**

0 commit comments

Comments
 (0)