Skip to content

Commit e789821

Browse files
committed
feature #10792 [Security] Allow overloading ContextListener::refreshUser() (lstrojny)
This PR was merged into the 2.6-dev branch. Discussion ---------- [Security] Allow overloading ContextListener::refreshUser() Allow overloading refreshUser() for the use case of doing something special with user providers. | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n.A. | License | MIT | Doc PR | n.A. Commits ------- b67ed43 Allow overloading ContextListener::refreshUser()
2 parents ccaccf4 + 553b514 commit e789821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function onKernelResponse(FilterResponseEvent $event)
142142
*
143143
* @throws \RuntimeException
144144
*/
145-
private function refreshUser(TokenInterface $token)
145+
protected function refreshUser(TokenInterface $token)
146146
{
147147
$user = $token->getUser();
148148
if (!$user instanceof UserInterface) {

0 commit comments

Comments
 (0)