- <?php
- $params = array_merge(
- require(__DIR__ . '/../../common/config/params.php'),
- require(__DIR__ . '/../../common/config/params-local.php'),
- require(__DIR__ . '/params.php'),
- require(__DIR__ . '/params-local.php')
- );
-
- $common_config_main = array_merge(require(__DIR__ . '/../../common/config/main.php'));
-
- return [
- 'id' => 'app-backend',
- 'basePath' => dirname(__DIR__),
- 'controllerNamespace' => 'backend\controllers',
- 'defaultRoute' => 'site/index',
- 'bootstrap' => ['log'],
- 'modules' => [],
- 'components' => [
- 'log' => [
- 'traceLevel' => YII_DEBUG ? 3 : 0,
- 'targets' => [
- [
- 'class' => 'yii\log\FileTarget',
- 'levels' => ['error', 'warning'],
- ],
- ],
- ],
- 'errorHandler' => [
- 'errorAction' => 'site/error',
- ],
- 'urlManager' => $common_config_main['components']['urlManagerBackend'],
- ],
- 'params' => $params,
- ];
|