-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Error on listing environment variables #34470
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
Could you please provide a reproducer in the form of a repository we could clone locally? |
@nicolas-grekas This bug is reproducible on my side with this example: https://github.com/versgui/sf44-bug |
/cc @ro0NL maybe? |
Most probably, its a symfony issue that must be corrected. The problem is that in line 66 of ServiceLocatorTrait.php file we mest return an object or the sytax used is a function syntax. Correct this by using this code temporarily :
$this->factories[$id] is an instance of Symfony\Component\DependencyInjection\EnvVarProcessor class and its not a function |
Fixed in #34755 |
…mmands (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] resolve service locators in `debug:*` commands | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34470 | License | MIT | Doc PR | - Because of the way ServiceClosureArgument are dumped, we need to resolve locators after loading the xml dump of the container: https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php#L273 Commits ------- 820da66 [FrameworkBundle] resolve service locators in `debug:*` commands
Symfony version(s) affected: 4.4.0-RC1
Description
When I try to list environment variables with
bin/console debug:container --env-vars
in DEV environment, I have this error:How to reproduce
Type
bin/console debug:container --env-vars --env=dev
with Symfony 4.4.0-RC1 and PHP 7.3.11 and these required packages.I tried with a fresh installation, the error occurs.
Example for reproduction: https://github.com/versgui/sf44-bug
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: