8000
Service "security.command.debug_firewall" not found error #41769
Labels
Symfony version(s) affected: 5.3.0
Description
A application that do not depends on
symfony/console
fails with the errorYou have requested a non-existent service "security.command.debug_firewall"
. This only happens with the new Authenticator-based Security.How to reproduce
Create an application that do not depends on
symfony/console
. If you use a new authentication security with a custom authenticator, you should get this error.Possible Solution
In the
security-bundle
, inSecurityExtension.php
, the command is loaded conditionnaly:However, in the function
createFirewall
, this condition is not present:This leads to the error
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "security.command.debug_firewall".
Additional context
A workaround is to add the dependency to
symfony/console
.The text was updated successfully, but these errors were encountered: