main.php 752 Bytes
Newer Older
1
<?php
2 3 4 5 6 7 8
$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')
);

Alexander Makarov committed
9
return [
Qiang Xue committed
10
	'id' => 'app-backend',
11
	'basePath' => dirname(__DIR__),
Alexander Makarov committed
12
	'preload' => ['log'],
13
	'controllerNamespace' => 'backend\controllers',
Alexander Makarov committed
14 15 16
	'modules' => [],
	'components' => [
		'user' => [
17
			'identityClass' => 'common\models\User',
18
			'enableAutoLogin' => true,
Alexander Makarov committed
19 20
		],
		'log' => [
21
			'traceLevel' => YII_DEBUG ? 3 : 0,
Alexander Makarov committed
22 23
			'targets' => [
				[
Qiang Xue committed
24
					'class' => 'yii\log\FileTarget',
Alexander Makarov committed
25 26 27 28 29
					'levels' => ['error', 'warning'],
				],
			],
		],
		'errorHandler' => [
30
			'errorAction' => 'site/error',
Alexander Makarov committed
31 32
		],
	],
33
	'params' => $params,
Alexander Makarov committed
34
];