-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
make Developer Mode controllable by environment variable for all execution paths #1445
make Developer Mode controllable by environment variable for all execution paths #1445
Conversation
…using environment variable. Relocate switch to Mage.php to allow for CLI.
I've had this code for so long I didn't realize it was a customization. The only difference is I put it in bootstrap.php. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but why if ( ! empty
? ... CS and CBF is on vacation? ;)
Oops.. that's my habitual style, I find it a lot easier to read. :D |
b5f6492
Sorry for being pandetic :) |
This allows developer mode to easily be controlled by an environment variable, for example set in the docker container and moves the logic to Mage.php so it can work from any script (index.php, api.php, get.php, cron.php, custom scripts). It is enabled by default in the bundled docker-based environment.