Browse Source

Connexion commune entre backend, frontend et producer

refactoring
keun 6 years ago
parent
commit
085ed6cf32
4 changed files with 9 additions and 15 deletions
  1. +0
    -4
      backend/config/main.php
  2. +9
    -0
      common/config/main.php
  3. +0
    -7
      frontend/config/main.php
  4. +0
    -4
      producer/config/main.php

+ 0
- 4
backend/config/main.php View File

'bootstrap' => ['log'], 'bootstrap' => ['log'],
'modules' => [], 'modules' => [],
'components' => [ 'components' => [
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
],
'log' => [ 'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0, 'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [ 'targets' => [

+ 9
- 0
common/config/main.php View File

return [ return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [ 'components' => [
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => [
'name' => 'laboiteapain',
'domain' => '.'.Yii::getAlias('@domainName'),
'path' => '/',
]
],
'cache' => [ 'cache' => [
'class' => 'yii\caching\FileCache', 'class' => 'yii\caching\FileCache',
], ],

+ 0
- 7
frontend/config/main.php View File

'bootstrap' => ['log'], 'bootstrap' => ['log'],
'controllerNamespace' => 'frontend\controllers', 'controllerNamespace' => 'frontend\controllers',
'components' => [ 'components' => [
/*'request' => [
'baseUrl' => '/new/',
],*/
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
],
'log' => [ 'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0, 'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [ 'targets' => [

+ 0
- 4
producer/config/main.php View File

'bootstrap' => ['log'], 'bootstrap' => ['log'],
'controllerNamespace' => 'producer\controllers', 'controllerNamespace' => 'producer\controllers',
'components' => [ 'components' => [
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
],
'log' => [ 'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0, 'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [ 'targets' => [

Loading…
Cancel
Save