Skip to content

Commit

Permalink
fix: deprecations on Symfony 6.1 (markitosgv#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
gordinskiy authored Jun 27, 2023
1 parent 6f180f5 commit 09038fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Command/ClearInvalidRefreshTokensCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@

use Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenInterface;
use Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

#[AsCommand(name: 'gesdinet:jwt:clear', description: 'Clear invalid refresh tokens.')]
class ClearInvalidRefreshTokensCommand extends Command
{
/**
* @deprecated
*/
protected static $defaultName = 'gesdinet:jwt:clear';

private RefreshTokenManagerInterface $refreshTokenManager;
Expand Down
5 changes: 5 additions & 0 deletions Command/RevokeRefreshTokenCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@
namespace Gesdinet\JWTRefreshTokenBundle\Command;

use Gesdinet\JWTRefreshTokenBundle\Model\RefreshTokenManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

#[AsCommand(name: 'gesdinet:jwt:revoke', description: 'Revoke a refresh token')]
class RevokeRefreshTokenCommand extends Command
{
/**
* @deprecated
*/
protected static $defaultName = 'gesdinet:jwt:revoke';

private RefreshTokenManagerInterface $refreshTokenManager;
Expand Down

0 comments on commit 09038fb

Please sign in to comment.