-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
DI - problem with resolve env after update from 3.3 to 4.0.1 #25477
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
Comments
You should first upgrade to 3.4, fix all deprecations and then go to 4.0. Does it work in 3.4? Do you have deprecations in 3.4 that might tell you how to solve this? |
I did not check 3.4. |
Can you check it yourself? |
You can check it, I can't. If you want to upgrade to 4.0, you first have to do 3.4, that's how it goes. If you skip 3.4, there's not much the community can do to check if this is an issue in Symfony without a lot of knowledge of the code in question. |
I dont understand how it relation. Suppose I updated to 3.4 and did not notice this problem. Then I updated to 4 and found the problem, but I still did not exactly reproduce it on 3.4. |
If the described example is not enough. I can prepare clean repo with problem without other code for reproduce it. |
That would be much better 👍 But still try 3.4. The point is to try to identify deprecations on 3.4. If you see deprecations, it means your code use things that are not working anymore in 4.0 (and might fail silently - tho shouldn't). If it's the case then you'll be directly pointed out to the things you need to change and you might just have to fix them to have your application working with Symfony 4. |
Ok, I will prepare clean repo for reproduce. |
Clean repo for reproduce this bug - https://github.com/alexpts/bug-symfony-di |
Problem was fix in commit - c2266bb I think we need wait new fix version. Am I right? |
You are correct, this was merged 3 days ago |
was fixed in #25245 |
Ok, Thanks! Will wait new fix version |
Uh oh!
There was an error while loading. Please reload this page.
After update from 3.3 to 4.0.1 env values from sub array not resolve to real value on compile container with $resolveEnvPlaceholders=true.
Example yml config:
Class:
inline://static.domain.ru/
fromArray:://static.domain.ru/ fromSubArray::env_STATIC_DOMAIN_190b296f9508e8ebee983c41c97121da - bug
If we try get value from parameter it is work:
It work correct in 3.3.
Version 3.4 i skip, need check it all version from 3.3.
Note: I can reproduce problem only runtime container without dump/cache container.
The text was updated successfully, but these errors were encountered: