mirror of
https://github.com/elyby/accounts.git
synced 2024-12-12 16:39:01 +05:30
34 lines
915 B
PHP
34 lines
915 B
PHP
<?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')
|
|
);
|
|
|
|
return [
|
|
'id' => 'accounts-site-api',
|
|
'basePath' => dirname(__DIR__),
|
|
'bootstrap' => ['log'],
|
|
'controllerNamespace' => 'api\controllers',
|
|
'components' => [
|
|
'user' => [
|
|
'identityClass' => 'common\models\User',
|
|
'enableAutoLogin' => true,
|
|
],
|
|
'log' => [
|
|
'traceLevel' => YII_DEBUG ? 3 : 0,
|
|
'targets' => [
|
|
[
|
|
'class' => 'yii\log\FileTarget',
|
|
'levels' => ['error', 'warning'],
|
|
],
|
|
],
|
|
],
|
|
'errorHandler' => [
|
|
'errorAction' => 'site/error',
|
|
],
|
|
],
|
|
'params' => $params,
|
|
];
|