first commit
This commit is contained in:
3
common/config/.gitignore
vendored
Normal file
3
common/config/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
main-local.php
|
||||
params-local.php
|
||||
test-local.php
|
5
common/config/bootstrap.php
Normal file
5
common/config/bootstrap.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
Yii::setAlias('@common', dirname(__DIR__));
|
||||
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');
|
||||
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend');
|
||||
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
|
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
|
||||
]
|
||||
]
|
||||
],
|
||||
];
|
6
common/config/params.php
Normal file
6
common/config/params.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'adminEmail' => 'admin@example.com',
|
||||
'supportEmail' => 'support@example.com',
|
||||
'user.passwordResetTokenExpire' => 3600,
|
||||
];
|
14
common/config/test.php
Normal file
14
common/config/test.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
return [
|
||||
'id' => 'app-common-tests',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'components' => [
|
||||
'user' => [
|
||||
'class' => 'yii\web\User',
|
||||
'identityClass' => 'common\models\User',
|
||||
],
|
||||
'request' => [
|
||||
'cookieValidationKey' => 'test',
|
||||
],
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user