diff --git a/composer.json b/composer.json index e94c14f8..390a040f 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ "league/oauth2-server": "^8.5.3", "nyholm/psr7": "^1.5", "phpseclib/phpseclib": "^2.0|^3.0", + "symfony/console": "^6.0|^7.0", "symfony/psr-http-message-bridge": "^2.1|^6.0|^7.0" }, "require-dev": { diff --git a/src/Console/ClientCommand.php b/src/Console/ClientCommand.php index 7bbfb3a6..58c52ed6 100644 --- a/src/Console/ClientCommand.php +++ b/src/Console/ClientCommand.php @@ -6,7 +6,9 @@ use Laravel\Passport\Client; use Laravel\Passport\ClientRepository; use Laravel\Passport\Passport; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'passport:client')] class ClientCommand extends Command { /** diff --git a/src/Console/HashCommand.php b/src/Console/HashCommand.php index 0ddcd282..4e55b135 100644 --- a/src/Console/HashCommand.php +++ b/src/Console/HashCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Passport\Passport; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'passport:hash')] class HashCommand extends Command { /** diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 921c9be6..2d84fc8d 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Passport\Passport; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'passport:install')] class InstallCommand extends Command { /** diff --git a/src/Console/KeysCommand.php b/src/Console/KeysCommand.php index 6c4d6305..f9d41787 100644 --- a/src/Console/KeysCommand.php +++ b/src/Console/KeysCommand.php @@ -7,7 +7,9 @@ use Laravel\Passport\Passport; use phpseclib\Crypt\RSA as LegacyRSA; use phpseclib3\Crypt\RSA; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'passport:keys')] class KeysCommand extends Command { /** diff --git a/src/Console/PurgeCommand.php b/src/Console/PurgeCommand.php index a5ed078d..eacb3b32 100644 --- a/src/Console/PurgeCommand.php +++ b/src/Console/PurgeCommand.php @@ -5,7 +5,9 @@ use Illuminate\Console\Command; use Illuminate\Support\Carbon; use Laravel\Passport\Passport; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'passport:purge')] class PurgeCommand extends Command { /**