Closed
Description
As of Magento 1, you have to edit index.php to activate Magento_Profiler.
In my opinion, it should not be necessary to edit any core files.
My proposal is to introduce code to app/bootstrap.php similar to:
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}
One or more additional environment variables can allow to register the profile output classes.
Advantages:
- No need to edit app/bootstrap.php
- It's easy to set different settings for every environment (dev/stage/live etc.)
Metadata
Metadata
Assignees
Labels
No labels