src/EventListener/AccessTokenListener.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\EventListener;
  4. use League\OAuth2\Server\RequestAccessTokenEvent;
  5. final class AccessTokenListener
  6. {
  7.     public function onAccessTokenIssuedEvent(RequestAccessTokenEvent $event): void
  8.     {
  9.         // dd($event->getAccessToken());
  10.         // do something
  11.     }
  12. }