Renamed YII_ROOT_DIR → YII_APP_BASE_PATH
This commit is contained in:
parent
f85a0f7dd2
commit
6b67d0ec52
@ -6,7 +6,7 @@ defined('YII_ENV') or define('YII_ENV', 'test');
|
|||||||
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
||||||
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
|
||||||
|
|
||||||
defined('YII_ROOT_DIR') or define('YII_ROOT_DIR', dirname(dirname(dirname(__DIR__))));
|
defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(__DIR__))));
|
||||||
|
|
||||||
require(YII_ROOT_DIR . '/vendor/autoload.php');
|
require(YII_APP_BASE_PATH . '/vendor/autoload.php');
|
||||||
require(YII_ROOT_DIR . '/vendor/yiisoft/yii2/Yii.php');
|
require(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php');
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
require_once __DIR__ . '/_bootstrap.php';
|
require_once __DIR__ . '/_bootstrap.php';
|
||||||
|
|
||||||
$config = yii\helpers\ArrayHelper::merge(
|
$config = yii\helpers\ArrayHelper::merge(
|
||||||
require(YII_ROOT_DIR . '/config/console.php'),
|
require(YII_APP_BASE_PATH . '/config/console.php'),
|
||||||
require(__DIR__ . '/../config/config.php'),
|
require(__DIR__ . '/../config/config.php'),
|
||||||
[
|
[
|
||||||
'components' => [
|
'components' => [
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
require_once __DIR__ . '/_bootstrap.php';
|
require_once __DIR__ . '/_bootstrap.php';
|
||||||
|
|
||||||
$config = yii\helpers\ArrayHelper::merge(
|
$config = yii\helpers\ArrayHelper::merge(
|
||||||
require(YII_ROOT_DIR . '/config/console.php'),
|
require(YII_APP_BASE_PATH . '/config/console.php'),
|
||||||
require(__DIR__ . '/../config/config.php'),
|
require(__DIR__ . '/../config/config.php'),
|
||||||
[
|
[
|
||||||
'components' => [
|
'components' => [
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
require_once __DIR__ . '/_bootstrap.php';
|
require_once __DIR__ . '/_bootstrap.php';
|
||||||
|
|
||||||
$config = yii\helpers\ArrayHelper::merge(
|
$config = yii\helpers\ArrayHelper::merge(
|
||||||
require(YII_ROOT_DIR . '/config/console.php'),
|
require(YII_APP_BASE_PATH . '/config/console.php'),
|
||||||
require(__DIR__ . '/../config/config.php'),
|
require(__DIR__ . '/../config/config.php'),
|
||||||
[
|
[
|
||||||
'components' => [
|
'components' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user