|
- <?php
- return [
- 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
- 'components' => [
- 'user' => [
- 'class' => 'yii\web\User',
- 'identityClass' => 'common\models\User',
- 'enableAutoLogin' => true,
- 'identityCookie' => [
- 'name' => 'laboiteapain',
- 'domain' => '.'.Yii::getAlias('@domainName'),
- 'path' => '/',
- ]
- ],
- 'session' => [
- 'class' => 'yii\web\Session',
- 'name' => 'PHPLABOITEAPAINSESSID',
- 'cookieParams' => [
- 'domain' => '.'.Yii::getAlias('@domainName'),
- 'httpOnly' => true,
- ],
- ],
- 'cache' => [
- 'class' => 'yii\caching\FileCache',
- ],
- 'image' => [
- 'class' => 'yii\image\ImageDriver',
- 'driver' => 'GD', //GD or Imagick
- ],
- 'urlManagerProducer' => [
- 'class' => 'producer\components\UrlManagerProducer',
- 'subDomain' => Yii::getAlias('@producerSubdomain'),
- 'domainName' => Yii::getAlias('@domainName'),
- 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlProducer'),
- 'enablePrettyUrl' => true,
- 'showScriptName' => false,
- 'enableStrictParsing' => false,
- 'rules' => [
- '<slug_producer:\w+>/' => 'site/index',
- '<slug_producer:\w+>/<controller>/<action>' => '<controller>/<action>',
- ],
- ],
- 'urlManagerFrontend' => [
- 'class' => 'common\components\UrlManagerCommon',
- 'subDomain' => Yii::getAlias('@frontendSubdomain'),
- 'domainName' => Yii::getAlias('@domainName'),
- 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlFrontend'),
- 'enablePrettyUrl' => true,
- 'showScriptName' => false,
- 'enableStrictParsing' => false,
- 'rules' => [
- ],
- ],
- 'urlManagerBackend' => [
- 'class' => 'common\components\UrlManagerCommon',
- 'subDomain' => Yii::getAlias('@backendSubdomain'),
- 'domainName' => Yii::getAlias('@domainName'),
- 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlBackend'),
- 'enablePrettyUrl' => true,
- 'showScriptName' => false,
- 'enableStrictParsing' => false,
- 'rules' => [
- ],
- ],
- ],
- 'language' => 'fr-FR',
- ];
|