|
|
|
@ -17,6 +17,10 @@ use yii\log\Logger;
|
|
|
|
|
*/ |
|
|
|
|
defined('YII_BEGIN_TIME') or define('YII_BEGIN_TIME', microtime(true)); |
|
|
|
|
/** |
|
|
|
|
* This constant defines the framework installation directory. |
|
|
|
|
*/ |
|
|
|
|
defined('YII_PATH') or define('YII_PATH', __DIR__); |
|
|
|
|
/** |
|
|
|
|
* This constant defines whether the application should be in debug mode or not. Defaults to false. |
|
|
|
|
*/ |
|
|
|
|
defined('YII_DEBUG') or define('YII_DEBUG', false); |
|
|
|
@ -26,9 +30,18 @@ defined('YII_DEBUG') or define('YII_DEBUG', false);
|
|
|
|
|
*/ |
|
|
|
|
defined('YII_ENV') or define('YII_ENV', 'prod'); |
|
|
|
|
/** |
|
|
|
|
* This constant defines the framework installation directory. |
|
|
|
|
* Whether the the application is running in production environment |
|
|
|
|
*/ |
|
|
|
|
defined('YII_PATH') or define('YII_PATH', __DIR__); |
|
|
|
|
defined('YII_ENV_PROD') or define('YII_ENV_PROD', YII_ENV === 'prod'); |
|
|
|
|
/** |
|
|
|
|
* Whether the the application is running in development environment |
|
|
|
|
*/ |
|
|
|
|
defined('YII_ENV_DEV') or define('YII_ENV_DEV', YII_ENV === 'dev'); |
|
|
|
|
/** |
|
|
|
|
* Whether the the application is running in testing environment |
|
|
|
|
*/ |
|
|
|
|
defined('YII_ENV_TEST') or define('YII_ENV_TEST', YII_ENV === 'test'); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* This constant defines whether error handling should be enabled. Defaults to true. |
|
|
|
|
*/ |
|
|
|
|