2018-10-11 11:15:09 +03:00
|
|
|
<?php
|
|
|
|
return [
|
|
|
|
'aliases' => [
|
|
|
|
'@bower' => '@vendor/bower-asset',
|
|
|
|
'@npm' => '@vendor/npm-asset',
|
|
|
|
],
|
|
|
|
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
|
|
|
'components' => [
|
|
|
|
'cache' => [
|
|
|
|
'class' => 'yii\caching\FileCache',
|
|
|
|
],
|
2020-01-29 11:26:01 +03:00
|
|
|
'authManager' => [
|
|
|
|
'class' => 'yii\rbac\DbManager',
|
|
|
|
// 'itemFile' => '@common/components/rbac/items.php',
|
|
|
|
// 'assignmentFile' => '@common/components/rbac/assignments.php',
|
|
|
|
// 'ruleFile' => '@common/components/rbac/rules.php'
|
|
|
|
],
|
2018-10-11 11:15:09 +03:00
|
|
|
],
|
|
|
|
'controllerMap' => [
|
|
|
|
'elfinder' => [
|
|
|
|
'class' => 'mihaildev\elfinder\Controller',
|
|
|
|
'access' => ['@', '?'],
|
|
|
|
'disabledCommands' => ['netmount'],
|
|
|
|
'roots' => [
|
|
|
|
[
|
|
|
|
'baseUrl' => '',
|
|
|
|
'basePath' => '@frontend/web',
|
|
|
|
'path' => 'media/upload',
|
|
|
|
'name' => 'Изображения',
|
|
|
|
],
|
2022-01-07 15:04:11 +03:00
|
|
|
[
|
|
|
|
'basePath' => '@templates',
|
|
|
|
'name' => 'Шаблоны документов' //перевод Yii::t($category, $message)
|
|
|
|
],
|
2018-10-11 11:15:09 +03:00
|
|
|
],
|
|
|
|
'watermark' => [
|
|
|
|
'source' => __DIR__ . '/logo.png', // Path to Water mark image
|
|
|
|
'marginRight' => 5, // Margin right pixel
|
|
|
|
'marginBottom' => 5, // Margin bottom pixel
|
|
|
|
'quality' => 95, // JPEG image save quality
|
|
|
|
'transparency' => 70, // Water mark image transparency ( other than PNG )
|
2024-02-05 23:58:48 +03:00
|
|
|
//'targetType' => IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP, // Target image formats ( bit-field )
|
2018-10-11 11:15:09 +03:00
|
|
|
'targetMinPixel' => 200 // Target image minimum pixel size
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
];
|