Browse Source

Added missing environment definition in console

fixes https://github.com/yiisoft/yii2/issues/10300
Carsten Brandt 10 years ago
parent
commit
ce4ad9c851
1 changed files with 1 additions and 0 deletions
  1. 1 0
      yii

+ 1 - 0
yii

@@ -9,6 +9,7 @@
  */
  */
 
 
 defined('YII_DEBUG') or define('YII_DEBUG', true);
 defined('YII_DEBUG') or define('YII_DEBUG', true);
+defined('YII_ENV') or define('YII_ENV', 'dev');
 
 
 require(__DIR__ . '/vendor/autoload.php');
 require(__DIR__ . '/vendor/autoload.php');
 require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
 require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');