first commit
This commit is contained in:
37
common/config/main.php
Normal file
37
common/config/main.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?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
|
||||
]
|
||||
]
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user