2fa: AuthenticatorInterface not found

Bundle version: 5.11.0 Symfony version: 4.4.11 PHP version: 7.4 Using authenticators (enable_authenticator_manager: true): Not applicable to Symfony 4.4.11.

Description

ClassNotFoundException: Attempted to load interface "AuthenticatorInterface" from namespace "Symfony\Component\Security\Http\Authenticator".

According to composer version requirements, Symfony 4.4.11 is supported. But there is no Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface defined in that version.

To Reproduce

Steps to reproduce the behavior: Install Symfony and bundle versions specified above

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

Now I see. TwoFactorAuthenticator has abstract service definition and we try to load the class when iterating all DIC service definitions. Seems we need to skip abstract definitions, or skip vendor definitions. Thanks for your time.

I solved it… was exactly the same case as mentioned above… we had an iteration over all container classes and then in the loop a class_exists call in one of the CompilerPasses. Thanks guys! 😃