diff --git a/composer.json b/composer.json index 41b660326..dec254e5c 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,7 @@ "php": "^8.0", "ext-json": "*", "laravel/framework": "^8.37|^9.0|^10.0|^11.0", + "symfony/console": "^5.3|^6.0|^7.0", "symfony/var-dumper": "^5.0|^6.0|^7.0" }, "require-dev": { diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index 00000fa58..ae2322ee8 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Telescope\Contracts\ClearableRepository; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'telescope:clear')] class ClearCommand extends Command { /** diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 3f83810d4..41e1188a2 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -5,7 +5,9 @@ use Illuminate\Console\Command; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Str; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'telescope:install')] class InstallCommand extends Command { /** diff --git a/src/Console/PauseCommand.php b/src/Console/PauseCommand.php index 1050852ce..2da5c553d 100644 --- a/src/Console/PauseCommand.php +++ b/src/Console/PauseCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Illuminate\Contracts\Cache\Repository as CacheRepository; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'telescope:pause')] class PauseCommand extends Command { /** diff --git a/src/Console/PruneCommand.php b/src/Console/PruneCommand.php index 05ff8c4d5..4dfa96bcd 100644 --- a/src/Console/PruneCommand.php +++ b/src/Console/PruneCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Telescope\Contracts\PrunableRepository; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'telescope:prune')] class PruneCommand extends Command { /** diff --git a/src/Console/PublishCommand.php b/src/Console/PublishCommand.php index ae0deb8ec..353415ed9 100644 --- a/src/Console/PublishCommand.php +++ b/src/Console/PublishCommand.php @@ -3,7 +3,9 @@ namespace Laravel\Telescope\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'telescope:publish')] class PublishCommand extends Command { /** diff --git a/src/Console/ResumeCommand.php b/src/Console/ResumeCommand.php index 149ff69b0..ef46a6d36 100644 --- a/src/Console/ResumeCommand.php +++ b/src/Console/ResumeCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Illuminate\Contracts\Cache\Repository as CacheRepository; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'telescope:resume')] class ResumeCommand extends Command { /**