mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Revert "Used ternary operator instead of "or" for constant definition"
This reverts commit 2bb6f13505e212d68841a7e6609806fb30d04002.
This commit is contained in:
@ -2,14 +2,14 @@
|
||||
|
||||
// the entry script URL (without host info) for functional and acceptance tests
|
||||
// PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
|
||||
defined('TEST_ENTRY_URL') ?: define('TEST_ENTRY_URL', '/backend/web/index-test.php');
|
||||
defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/backend/web/index-test.php');
|
||||
|
||||
// the entry script file path for functional and acceptance tests
|
||||
defined('TEST_ENTRY_FILE') ?: define('TEST_ENTRY_FILE', dirname(__DIR__) . '/web/index-test.php');
|
||||
defined('TEST_ENTRY_FILE') or define('TEST_ENTRY_FILE', dirname(__DIR__) . '/web/index-test.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
require_once(__DIR__ . '/../../common/config/aliases.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -2,14 +2,14 @@
|
||||
|
||||
// the entry script URL (without host info) for functional and acceptance tests
|
||||
// PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
|
||||
defined('TEST_ENTRY_URL') ?: define('TEST_ENTRY_URL', '/index-test.php');
|
||||
defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/index-test.php');
|
||||
|
||||
// the entry script file path for functional and acceptance tests
|
||||
defined('TEST_ENTRY_FILE') ?: define('TEST_ENTRY_FILE', dirname(__DIR__) . '/index-test.php');
|
||||
defined('TEST_ENTRY_FILE') or define('TEST_ENTRY_FILE', dirname(__DIR__) . '/index-test.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
require_once(__DIR__ . '/../../common/config/aliases.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -2,14 +2,14 @@
|
||||
|
||||
// the entry script URL (without host info) for functional and acceptance tests
|
||||
// PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
|
||||
defined('TEST_ENTRY_URL') ?: define('TEST_ENTRY_URL', '/index-test.php');
|
||||
defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/index-test.php');
|
||||
|
||||
// the entry script file path for functional and acceptance tests
|
||||
defined('TEST_ENTRY_FILE') ?: define('TEST_ENTRY_FILE', dirname(__DIR__) . '/index-test.php');
|
||||
defined('TEST_ENTRY_FILE') or define('TEST_ENTRY_FILE', dirname(__DIR__) . '/index-test.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
require_once(__DIR__ . '/../../common/config/aliases.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -5,8 +5,8 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
|
||||
die('You are not allowed to access this file.');
|
||||
}
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'dev');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -5,8 +5,8 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
|
||||
die('You are not allowed to access this file.');
|
||||
}
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'dev');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
* @license http://www.yiiframework.com/license/
|
||||
*/
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'dev');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require(__DIR__ . '/vendor/autoload.php');
|
||||
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', false);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'prod');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', false);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'prod');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
* @license http://www.yiiframework.com/license/
|
||||
*/
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', false);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'prod');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||
defined('YII_ENV') or define('YII_ENV', 'prod');
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require(__DIR__ . '/vendor/autoload.php');
|
||||
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -2,14 +2,14 @@
|
||||
|
||||
// the entry script URL (without host info) for functional and acceptance tests
|
||||
// PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
|
||||
defined('TEST_ENTRY_URL') ?: define('TEST_ENTRY_URL', '/frontend/web/index-test.php');
|
||||
defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/frontend/web/index-test.php');
|
||||
|
||||
// the entry script file path for functional and acceptance tests
|
||||
defined('TEST_ENTRY_FILE') ?: define('TEST_ENTRY_FILE', dirname(__DIR__) . '/web/index-test.php');
|
||||
defined('TEST_ENTRY_FILE') or define('TEST_ENTRY_FILE', dirname(__DIR__) . '/web/index-test.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
|
||||
@ -8,12 +8,12 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../../vendor/autoload.php');
|
||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
|
||||
require_once(__DIR__ . '/../../common/config/aliases.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*/
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require_once(__DIR__ . '/../_console.php');
|
||||
|
||||
|
||||
@ -2,14 +2,14 @@
|
||||
|
||||
// the entry script URL (without host info) for functional and acceptance tests
|
||||
// PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
|
||||
defined('TEST_ENTRY_URL') ?: define('TEST_ENTRY_URL', '/basic/web/index-test.php');
|
||||
defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/basic/web/index-test.php');
|
||||
|
||||
// the entry script file path for functional and acceptance tests
|
||||
defined('TEST_ENTRY_FILE') ?: define('TEST_ENTRY_FILE', dirname(__DIR__) . '/web/index-test.php');
|
||||
defined('TEST_ENTRY_FILE') or define('TEST_ENTRY_FILE', dirname(__DIR__) . '/web/index-test.php');
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require_once(__DIR__ . '/../vendor/autoload.php');
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require(__DIR__ . '/../vendor/autoload.php');
|
||||
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -5,8 +5,8 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
|
||||
die('You are not allowed to access this file.');
|
||||
}
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'test');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require(__DIR__ . '/../vendor/autoload.php');
|
||||
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
// comment out the following two lines when deployed to production
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_ENV') ?: define('YII_ENV', 'dev');
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
|
||||
require(__DIR__ . '/../vendor/autoload.php');
|
||||
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -8,11 +8,11 @@
|
||||
* @license http://www.yiiframework.com/license/
|
||||
*/
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', true);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
// fcgi doesn't have STDIN and STDOUT defined by default
|
||||
defined('STDIN') ?: define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') ?: define('STDOUT', fopen('php://stdout', 'w'));
|
||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||
|
||||
require(__DIR__ . '/vendor/autoload.php');
|
||||
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
defined('YII_DEBUG') ?: define('YII_DEBUG', false);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||
|
||||
require(__DIR__ . '/protected/vendor/yiisoft/yii2/Yii.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user