guild/common/config/main.php
2019-06-21 18:05:58 +03:00

38 lines
1.3 KiB
PHP
Executable File

<?php
return [
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
],
'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
]
]
],
];