code: public function logout(Request $request, Response $response, TokenInterface $token): void
      {
          $user = $token->getUser();
  
          if (!$user instanceof User) {
              return;
          }
  
          if (null !== $this->logger) {
              $this->logger->info(
                  sprintf('User "%s" has logged out', $user->username),
                  ['contao' => new ContaoContext(__METHOD__, ContaoContext::ACCESS, $user->username)]
              );
          }
  
          $this->triggerPostLogoutHook($user);
      }
docs: {@inheritdoc}