Description
Symfony version(s) affected: 5.1
Description
Created a custom UserChecker and get the following error
The service "security.listener.user_checker" has a dependency on a non-existent service "Symfony\Component\Security\Core\User\UserCheckerInterface".
How to reproduce
Follow the provided documentation. https://symfony.com/doc/current/security/user_checkers.html .
Since the autowire and autoconfigure are on I didn't declare anything else in the services.yaml like it says at the bottom of the article.
When I add
pattern: ^/
user_checker: App\Security\UserChecker
to the security.yaml file I get the error as mentioned above.
Possible Solution
Don't know. Either there's something wrong/outdated with the documentation or there's something wrong with the autowire/autoconfigure I assume.