Closed
Description
Symfony version(s) affected: 5.3.0
Description
After updating to Symfony 5.3 the container linter outputs the following error.
[critical] Error thrown while running command "lint:container". Message: "Invalid service "validator.expression": class "Symfony\Component\ExpressionLanguage\ExpressionLanguage" does not exist."
I think it's caused by the changes of #39327.
How to reproduce
I will add a example project or from a new Symfony app ASAP. But I would say that it is sufficient to add the Validator component.
Possible Solution
Add service validator.expression_language
only if ExpressionLanguage
component is installed or add ExpressionLanguage
component to composer.json of Validator
component.