Let TemporaryUserProvider support subclasses

master
Lars Vierbergen 7 years ago
parent 915fd7b5f0
commit eefabdf53d
  1. 2
      Security/Core/User/TemporaryUserProvider.php

@ -30,7 +30,7 @@ class TemporaryUserProvider implements UserProviderInterface
public function supportsClass($class)
{
return $class === TemporaryUser::class;
return is_subclass_of($class, TemporaryUser::class);
}
public function refreshUser(UserInterface $user)