| Current Path : /var/www/html/jpp/backend/config/ |
| Current File : /var/www/html/jpp/backend/config/main.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 [
'language' => 'English',
'id' => 'app-backend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'bootstrap' => [
'backend\modules\installer\SiteBootstrap',
'dynamicModules' => [
'class' => 'common\components\DynamicModules',
],
'log'
],
'modules' => [
'contentRevslider' => [
'class' => 'backend\modules\contentRevslider\Module',
],
'fileqna' => [
'class' => 'backend\modules\fileqna\Module',
],
'aidynaweb' => [
'class' => 'backend\modules\aidynaweb\Module',
],
'contentLanding' => [
'class' => 'backend\modules\contentLanding\Module',
],
'repodl' => [
'class' => 'backend\modules\repodl\Module',
'baseUrl' => 'https://dynawebv3.blunetdev.com'
],
'first-time-setup' => [
'class' => 'backend\modules\firstTimeSetup\Module',
],
'documentAutomation' => [
'class' => 'backend\modules\documentAutomation\Module',
],
'procurement' => [
'class' => 'backend\modules\procurement\Module',
],
'tender' => [
'class' => 'backend\modules\tender\Module',
],
'glossary' => [
'class' => 'backend\modules\glossary\Module',
],
'contentImages' => [
'class' => 'backend\modules\contentImages\Module',
],
'manual' => [
'class' => 'backend\modules\manual\Module',
],
'draw' => [
'class' => 'backend\modules\draw\Module',
],
'pageVisitLog' => [
'class' => 'backend\modules\pageVisitLog\Module'
],
'installer' => [
'class' => 'backend\modules\installer\InstallerModule'
],
'mmngr' => [
'class' => 'backend\modules\mmngr\Module'
],
'mimin' => [
'class' => 'backend\modules\mimin\Module'
],
'menu' => [
'class' => 'backend\modules\menu\Module',
],
'theme' => [
'class' => 'backend\modules\theme\Module',
],
'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' => []
],
'as access' => [
'class' => 'backend\modules\mimin\components\AccessControl',
'allowActions' => [
// add wildcard allowed action here!
'site/*',
'debug/*',
'mimin/*', // only in dev mode
'installer/*'
],
],
'audit' => [
'class' => 'bedezign\yii2\audit\Audit',
// the layout that should be applied for views within this module
'layout' => '/audit',
// Name of the component to use for database access
'db' => 'db',
// List of actions to track. '*' is allowed as the last character to use as wildcard
'trackActions' => ['*'],
// Actions to ignore. '*' is allowed as the last character to use as wildcard (eg 'debug/*')
'ignoreActions' => ['audit/*', 'debug/*', 'site/*', 'dashboard/*', 'installer/*'],
// Maximum age (in days) of the audit entries before they are truncated
'maxAge' => 'debug',
// IP address or list of IP addresses with access to the viewer, null for everyone (if the IP matches)
'accessIps' => ['127.0.0.1', '192.168.*'],
// Role or list of roles with access to the viewer, null for everyone (if the user matches)
'accessRoles' => ['super-admin'],
// User ID or list of user IDs with access to the viewer, null for everyone (if the role matches)
// 'accessUsers' => [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
// Compress extra data generated or just keep in text? For people who don't like binary data in the DB
'compressData' => true,
// The callback to use to convert a user id into an identifier (username, email, ...). Can also be html.
'userIdentifierCallback' => ['backend\models\User', 'userIdentifierCallback'],
// If the value is a simple string, it is the identifier of an internal to activate (with default settings)
// If the entry is a '<key>' => '<string>|<array>' it is a new panel. It can optionally override a core panel or add a new one.
// 'panels' => [
// 'audit/request',
// 'audit/error',
// 'audit/trail',
// 'app/views' => [
// 'class' => 'app\panels\ViewsPanel',
// ...
// ],
// ],
// 'panelsMerge' => [
// ... merge data (see below)
// ]
],
// 'debug' => [
// 'class' => \yii\debug\Module::class,
// 'panels' => [
// 'queue' => \yii\queue\debug\Panel::class,
// ],
// ],
],
'components' => [
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => [
'name' => '_backendIdentity',
],
],
'session' => [
'name' => 'BACKENDSESSIDBANCI',
'savePath' => __DIR__ . '/../runtime',
],
'request' => [
'cookieValidationKey' => '0okmnji98uhbBANCI',
'csrfParam' => '_backendCSRF',
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'authManager' => [
'class' => 'yii\rbac\DbManager', // only support DbManager
'defaultRoles' => ['guest'],
],
],
'aliases' => [
],
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\Controller',
'access' => ['@'],
'managerOptions' => [
'ui' => ['toolbar', 'tree', 'path', 'stat'],
'cssAutoLoad' => ['material/css/theme.css']
],
'disabledCommands' => ['netmount'],
'roots' => [
[
'baseUrl' => '@web',
'basePath' => '@webroot',
'path' => '../assets',
'name' => 'Assets'
],
],
]
],
'params' => $params,
];