Is there a way to check for development mode in code, php code
waqarprojectinertia opened this issue · 2 comments
waqarprojectinertia commented
How to check if the development mode is enabled or not in code
michalbundyra commented
@waqarprojectinertia Enabling development mode copy files:
config/development.config.php.dist
toconfig/development.config.php
config/autoload/development.local.php.dist
toconfig/autoload/development.local.php
so if you want to check it in code, please check if you have these files. It means you have enabled development mode.
You can also check status of development mode using console command:
$ ./vendor/bin/zf-development-mode status
weierophinney commented
This repository has been closed and moved to laminas/laminas-development-mode; a new issue has been opened at laminas/laminas-development-mode#4.