guild/common/config/main.php

44 lines
1.6 KiB
PHP
Raw Normal View History

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' => 'Изображения',
],
],
'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 )
'targetType' => IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP, // Target image formats ( bit-field )
'targetMinPixel' => 200 // Target image minimum pixel size
]
]
],
];