<?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' => 'app-backend',
'basePath' => dirname(__DIR__),
'language' => 'ru',
'sourceLanguage' => 'ru',
'controllerNamespace' => 'backend\controllers',
'bootstrap' => ['log', 'db', 'libs', 'loader', \backend\modules\loader\src\ModuleLoader::class ],
'modules' => [
'libs' => [
'class' => 'backend\modules\libs\LibsLoaderModule',
],
'loader' => [
'class' => \backend\modules\loader\LoaderModule::class,
],
'gridview' => [
'class' => '\kartik\grid\Module'
// enter optional module parameters below - only if you need to
// use your own export download action or custom translation
// message source
// 'downloadAction' => 'gridview/export/download',
// 'i18n' => []
]
],
'components' => [
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'cache' => [
'class' => (function_exists('apc_clear_cache'))?(yii\caching\ApcCache::class):(yii\caching\FileCache::class),
],
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'pgsql:host=185.125.44.99;port=5433;dbname=saascredit_db',
// 'dsn' => 'pgsql:host=192.168.1.100;port=5432;dbname=dclick',
'username' => 'saascredit_user',
// 'username' => 'postgres',
'password' => 'wfd,5y/+eB8ocQz',
// 'password' => '123456',
'charset' => 'utf8',
'enableSchemaCache' => true,
// Продолжительность кеширования схемы.
'schemaCacheDuration' => 3600,
// Название компонента кеша, используемого для хранения информации о схеме
'schemaCache' => 'cache'
],
'sphinx' => [
'class' => 'yii\sphinx\Connection',
'dsn' => 'mysql:host=185.125.44.99;port=9406;dbname=saascredit_db',
// 'dsn' => 'mysql:host=192.168.1.100;port=9306;dbname=dclick',
'charset' => 'utf8'
],
'i18n' => [
'translations' => [
'app*' => [
'class' => 'yii\i18n\PhpMessageSource',
'forceTranslation' => false,
],
],
],
],
'params' => $params,
];