Closed
Description
Symfony version(s) affected: 5.3
Description
I'm not sure if it's a bug or not, but it looks like the Symfony\Component\Security\Http\Event\CheckPassportEvent
is listen twice by the same event listener.
I can submit a PR If you have some guidelines to help me
How to reproduce
With symfony binary (php 8.0.5)
symfony new --full test && cd test && bin/console debug:event-dispatcher "Symfony\Component\Security\Http\Event\CheckPassportEvent"
Output:
Registered Listeners for "Symfony\Component\Security\Http\Event\CheckPassportEvent" Event
=========================================================================================
------- ----------------------------------------------------------------------------------------- ----------
Order Callable Priority
------- ----------------------------------------------------------------------------------------- ----------
#1 Symfony\Component\Security\Http\EventListener\UserProviderListener::checkPassport() 2048
#2 Symfony\Component\Security\Http\EventListener\UserProviderListener::checkPassport() 1024
#3 Symfony\Component\Security\Http\EventListener\CsrfProtectionListener::checkPassport() 512
#4 Symfony\Component\Security\Http\EventListener\CheckCredentialsListener::checkPassport() 0
------- ----------------------------------------------------------------------------------------- ----------