Skip to content

Commit 0240235

Browse files
committed
Fix updates to security contracts of voter and UserChecker
1 parent 6aa4545 commit 0240235

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Security/UserChecker.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Silverback\ApiComponentsBundle\Entity\User\AbstractUser;
1717
use Silverback\ApiComponentsBundle\Exception\UserDisabledException;
1818
use Silverback\ApiComponentsBundle\Exception\UserEmailAddressUnverified;
19+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1920
use Symfony\Component\Security\Core\Exception\CustomUserMessageAccountStatusException;
2021
use Symfony\Component\Security\Core\User\UserCheckerInterface;
2122
use Symfony\Component\Security\Core\User\UserInterface;
@@ -52,7 +53,7 @@ public function checkPreAuth(UserInterface $user): void
5253
}
5354
}
5455

55-
public function checkPostAuth(UserInterface $user): void
56+
public function checkPostAuth(UserInterface $user, ?TokenInterface $token = null): void
5657
{
5758
}
5859
}

0 commit comments

Comments
 (0)