<?php
declare(strict_types=1);
namespace App\EventListener;
use Psr\Log\LoggerInterface;
use League\OAuth2\Server\RequestAccessTokenEvent;
final class AccessTokenListener
{
private $logger;
public function __construct(LoggerInterface $logger)
{
$this->logger = $logger;
}
public function onAccessTokenIssuedEvent(RequestAccessTokenEvent $event): void
{
$token = $event->getAccessToken();
echo "hello test";
}
}