Skip to content

Class "Symfony\Component\Security\Http\Firewall\BasicAuthenticationListener" used for service "security.authentication.listener.basic.main" cannot be found. #44147

Closed
@alexander-schranz

Description

@alexander-schranz

Symfony version(s) affected

5.4.0-BETA-3

Description

When I'm running my testa against Symfony 5.4.0-BETA-3 or current dev we are getting a strange error:

The following package where installed:

Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Class "Symfony\Component\Security\Http\Firewall\BasicAuthenticationListener" used for service "security.authentication.listener.basic.main" cannot be found.

How to reproduce

https://github.com/massiveart/MassiveSearchBundle/runs/4266812846?check_suite_focus=true

Running on PHP 8.0 and install dev dependencies to run the test against that repository.

Possible Solution

Maybe have todo that the security-bundle 5:4 allows 6.0 packages but tries to register a BasicAuthenticationListener which does not exist in 6.0 security package.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDXDX = Developer eXperience (anything that improves the experience of using Symfony)SecurityBundleStatus: Reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions