Skip to content

Commit

Permalink
fix Console deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
yivi committed Dec 19, 2023
1 parent 12b7dab commit 25dae35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Console/PurgeExpiredTokensCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

namespace Yivoff\JwtRefreshBundle\Console;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Yivoff\JwtRefreshBundle\Contracts\PurgableRefreshTokenProviderInterface;
use Yivoff\JwtRefreshBundle\Contracts\RefreshTokenProviderInterface;


#[AsCommand('yivoff:jwt_refresh:purge_expired_tokens')]
class PurgeExpiredTokensCommand extends Command
{
protected static $defaultName = 'yivoff:jwt_refresh:purge_expired_tokens';

public function __construct(private RefreshTokenProviderInterface $provider)
public function __construct(private readonly RefreshTokenProviderInterface $provider)
{
parent::__construct((string) self::$defaultName);
parent::__construct();
}

protected function configure(): void
Expand Down

0 comments on commit 25dae35

Please sign in to comment.