zfcampus/zf-development-mode

Is there a way to check for development mode in code, php code

waqarprojectinertia opened this issue · 2 comments

How to check if the development mode is enabled or not in code

@waqarprojectinertia Enabling development mode copy files:

  • config/development.config.php.dist to config/development.config.php
  • config/autoload/development.local.php.dist to config/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

This repository has been closed and moved to laminas/laminas-development-mode; a new issue has been opened at laminas/laminas-development-mode#4.