Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

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

Open
waqarprojectinertia opened this issue Feb 28, 2017 · 2 comments

Comments

@waqarprojectinertia
Copy link

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

@michalbundyra
Copy link
Member

@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

@weierophinney
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants