use Rapsys\UserBundle\Entity\User;
use Rapsys\UserBundle\Exception\UnactivatedException;
-use Symfony\Component\Security\Core\User\InMemoryUserChecker;
+use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\DisabledException;
+use Symfony\Component\Security\Core\User\InMemoryUserChecker;
use Symfony\Component\Security\Core\User\UserInterface;
/**
/**
* {@inheritdoc}
*/
- public function checkPostAuth(UserInterface $user): void {
+ public function checkPostAuth(UserInterface $user, ?TokenInterface $token = null): void {
//Without User instance
if (!$user instanceof User) {
return;