You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Cookbook documentation for 'Using a Custom Query to Load the User' (http://symfony.com/doc/master/cookbook/security/entity_provider.html#using-a-custom-query-to-load-the-user), the example uses "implements UserProviderInterface". In the current version of Symfony the file should implement UserLoaderInterface instead. This can be seen in Symfony\Bridge\Doctrine\Security\User\EntityUserProvider where the loadUserByUsername method checks to ensure that the repository implements Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface. Can we update the document?
The text was updated successfully, but these errors were encountered:
…UserProviderInterface (ogizanagi)
This PR was merged into the 2.8 branch.
Discussion
----------
[Cookbook] [Security] Use UserLoaderInterface instead of UserProviderInterface
| Q | A
| ------------- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | 2.8+
| Fixed tickets | #5968
Commits
-------
79ec09a [Cookbook] [Security] Use UserLoaderInterface instead of UserProviderInterface
In the Cookbook documentation for 'Using a Custom Query to Load the User' (http://symfony.com/doc/master/cookbook/security/entity_provider.html#using-a-custom-query-to-load-the-user), the example uses "implements UserProviderInterface". In the current version of Symfony the file should implement UserLoaderInterface instead. This can be seen in Symfony\Bridge\Doctrine\Security\User\EntityUserProvider where the loadUserByUsername method checks to ensure that the repository implements Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface. Can we update the document?
The text was updated successfully, but these errors were encountered: