| Current Path : /var/www/html/ebookingdbkl/console/config/ |
| Current File : /var/www/html/ebookingdbkl/console/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 [
'id' => 'app-console',
'basePath' => dirname(__DIR__),
'bootstrap' => [
'log'
],
'controllerNamespace' => 'console\controllers',
'components' => [
'log' => [
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => [
// 'info',
'error',
// 'warning'
]
]
]
]
],
'modules' => [
'audit' => [
'class' => 'bedezign\yii2\audit\Audit',
// the layout that should be applied for views within this module
'layout' => '/empty',
// 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' => ['api/*'],
// Actions to ignore. '*' is allowed as the last character to use as wildcard (eg 'debug/*')
// 'ignoreActions' => ['audit/*', 'debug/*', 'site/*', 'dashboard/*'],
'ignoreActions' => ['*'],
// 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'],
],
],
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'bedezign\yii2\audit\migrations'
]
],
'migration' => [
'class' => 'tmukherjee13\migration\console\controllers\MigrationController',
'templateFile' => '@tmukherjee13/migration/views/template.php',
],
],
'params' => $params
];