New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entries are not fetched in array parameters of the constructor's factory #488
Milestone
Comments
If it's a bug and if you give me some guidelines, I'll try to submit a patch :) |
Hi, it is indeed not supposed to work. I'll try and look into that for v6 (it won't be an easy patch I think). |
ok, thanks for the feedback |
mnapoli
added a commit
that referenced
this issue
Jun 4, 2017
In PHP-DI 5, definitions could be nested in some places (e.g. use a get() in an object definition, etc.). However it did not behave everywhere the same, for example it didn't work for sub-definitions in arrays. Now in PHP-DI 6 all nested definitions will all be recognized and resolved correctly everywhere. Since #494 (compiled container) performance will not be affected so we can implement a more robust behavior.
mnapoli
added a commit
that referenced
this issue
Jun 4, 2017
…here In PHP-DI 5, definitions could be nested in some places (e.g. use a get() in an object definition, etc.). However it did not behave everywhere the same, for example it didn't work for sub-definitions in arrays. Now in PHP-DI 6 all nested definitions will all be recognized and resolved correctly everywhere. Since #494 (compiled container) performance will not be affected so we can implement a more robust behavior.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello there :) And thanks for this lib :)
I think I have found a bug, or at least a weirdness. Imagine I'd like to configure a KLogger service.
This configuration does not. The logger prefix is not correctly translated. I get the following error:
A workaround is to configure the service as the following:
The text was updated successfully, but these errors were encountered: