You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically the problem is that when using the service function from the expression language with a service which it self requires a synthetic service, the lint command fails, even though the service definitions are valid. The following error message is outputed:
In ContainerBuilder.php line 1091:
You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.
…s used in an expression (HypeMC)
This PR was merged into the 4.4 branch.
Discussion
----------
[DI] Fix container lint command when a synthetic service is used in an expression
Fix container lint command when a synthetic service is used in combination with the expression language.
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#35691
| License | MIT
| Doc PR | -
Commits
-------
e7fa73a Fix container lint command when a synthetic service is used in combination with the expression language
Symfony version(s) affected: 4.4
Description
The container lint command fails when using a combination of synthetic services & the expression language. I've created an example application to demonstrate the problem, all the code needed to reproduce the bug is in this commit: https://github.com/HypeMC/sf-container-lint-bug/commit/bb342d5b68892609fa86a048ce61f1750d0be6ab.
Basically the problem is that when using the
service
function from the expression language with a service which it self requires a synthetic service, the lint command fails, even though the service definitions are valid. The following error message is outputed:How to reproduce
Additional context
The text was updated successfully, but these errors were encountered: