-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento option --magento-init-params never used when running cli? #39248
Comments
Hi @stijnveeke. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hello @stijnveeke, Thanks for the report and collaboration! We have tried to reproduce the issue in the latest development branch i.e. 2.4-develop and the issue is reproducible for us. Please refer to the below screenshot for reference: Hence confirming the issue. Thanks |
Hi @engcom-Hotel. Thank you for working on this issue.
|
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13231 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Hey @engcom-Hotel, Can I get an update on this issue? Is it currently being worked on? It is confirmed, but I've not received feedback since last week. Is the removal from the Issue Confirmation and Triage Board a mistake or as intended? (I ask this because I see different issues that already have a PR, like Issue 39262, and they are still in the Triage Board, so the removal of this issue confuses me.) |
Hello @stijnveeke, As I checked in its related JIRA i.e. https://jira.corp.adobe.com/browse/AC-13231, the status is Issue removal from Issue confirmation and triage board is expected, confirmed issue has been moved as per the process. And the #39262 is Thanks |
Preconditions and environment
Steps to reproduce
For my command I used the setup:upgrade command with the init params following the example.
magento setup:upgrade --magento-init-params="MAGE_MODE=production"
I also tried to run it without "In both instances, the command is run, but the params never change," following the exact example given when running setup:upgrade --help.
Expected result
I expect a change in the MAGE_MODE to production instead of development.
Actual result
MAGE_MODE does not change.
Additional information
I placed a breakpoint in the framework/console/Cli.php file on line 82. On line 81, a variable named $application is created, which contains another variable called serviceManager. Inside serviceManager, there is an array called services. Within this array is a key named config, which includes a key called magento-init-params. This key, in turn, contains argv, where the entire command is present.
This confirms that the parameters are correctly passed to the serviceManager, but they are not being utilized for some reason.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: