diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-06-03 22:56:38 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-06-03 22:56:38 +0200 |
commit | 7c382a2d01b772e213b24fbcee6474cd54a9c4b4 (patch) | |
tree | 6ce7e9b57f1f186ec0ad4517d3ec625eab71efc4 /Http | |
parent | b6f61b950ffa49150307edda554c8b4c650982c5 (diff) | |
parent | d3550c44704157be641f35afc7c3f800ecfa9175 (diff) | |
download | symfony-security-7c382a2d01b772e213b24fbcee6474cd54a9c4b4.zip symfony-security-7c382a2d01b772e213b24fbcee6474cd54a9c4b4.tar.gz symfony-security-7c382a2d01b772e213b24fbcee6474cd54a9c4b4.tar.bz2 |
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()
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/ContextListener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php index 435c440..e61907e 100644 --- a/Http/Firewall/ContextListener.php +++ b/Http/Firewall/ContextListener.php @@ -142,7 +142,7 @@ class ContextListener implements ListenerInterface * * @throws \RuntimeException */ - private function refreshUser(TokenInterface $token) + protected function refreshUser(TokenInterface $token) { $user = $token->getUser(); if (!$user instanceof UserInterface) { |