You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					41 lines
				
				978 B
			
		
		
			
		
	
	
					41 lines
				
				978 B
			| 
											13 years ago
										 | <?php
 | ||
|  | $rootDir = __DIR__ . '/../..';
 | ||
|  | 
 | ||
|  | $params = array_merge(
 | ||
|  | 	require($rootDir . '/common/config/params.php'),
 | ||
|  | 	require($rootDir . '/common/config/params-local.php'),
 | ||
|  | 	require(__DIR__ . '/params.php'),
 | ||
|  | 	require(__DIR__ . '/params-local.php')
 | ||
|  | );
 | ||
|  | 
 | ||
|  | return array(
 | ||
| 
											13 years ago
										 | 	'id' => 'app-backend',
 | ||
| 
											13 years ago
										 | 	'basePath' => dirname(__DIR__),
 | ||
| 
											13 years ago
										 | 	'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
 | ||
| 
											13 years ago
										 | 	'preload' => array('log'),
 | ||
| 
											13 years ago
										 | 	'controllerNamespace' => 'backend\controllers',
 | ||
| 
											13 years ago
										 | 	'modules' => array(
 | ||
|  | 	),
 | ||
|  | 	'components' => array(
 | ||
| 
											13 years ago
										 | 		'db' => $params['components.db'],
 | ||
| 
											13 years ago
										 | 		'cache' => $params['components.cache'],
 | ||
| 
											13 years ago
										 | 		'user' => array(
 | ||
|  | 			'class' => 'yii\web\User',
 | ||
| 
											13 years ago
										 | 			'identityClass' => 'common\models\User',
 | ||
| 
											13 years ago
										 | 		),
 | ||
|  | 		'assetManager' => array(
 | ||
|  | 			'bundles' => require(__DIR__ . '/assets.php'),
 | ||
|  | 		),
 | ||
|  | 		'log' => array(
 | ||
|  | 			'class' => 'yii\logging\Router',
 | ||
|  | 			'targets' => array(
 | ||
|  | 				array(
 | ||
|  | 					'class' => 'yii\logging\FileTarget',
 | ||
|  | 					'levels' => array('error', 'warning'),
 | ||
|  | 				),
 | ||
|  | 			),
 | ||
|  | 		),
 | ||
|  | 	),
 | ||
|  | 	'params' => $params,
 | ||
|  | );
 |