Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

59 lines
2.1KB

  1. <?php
  2. return [
  3. 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
  4. 'components' => [
  5. 'user' => [
  6. 'class' => 'yii\web\User',
  7. 'identityClass' => 'common\models\User',
  8. 'enableAutoLogin' => true,
  9. 'identityCookie' => [
  10. 'name' => 'laboiteapain',
  11. 'domain' => '.'.Yii::getAlias('@domainName'),
  12. 'path' => '/',
  13. ]
  14. ],
  15. 'cache' => [
  16. 'class' => 'yii\caching\FileCache',
  17. ],
  18. 'image' => [
  19. 'class' => 'yii\image\ImageDriver',
  20. 'driver' => 'GD', //GD or Imagick
  21. ],
  22. 'urlManagerProducer' => [
  23. 'class' => 'producer\components\UrlManagerProducer',
  24. 'subDomain' => Yii::getAlias('@producerSubdomain'),
  25. 'domainName' => Yii::getAlias('@domainName'),
  26. 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlProducer'),
  27. 'enablePrettyUrl' => true,
  28. 'showScriptName' => false,
  29. 'enableStrictParsing' => false,
  30. 'rules' => [
  31. '<slug_producer:\w+>/<controller>/<action>' => '<controller>/<action>',
  32. ],
  33. ],
  34. 'urlManagerFrontend' => [
  35. 'class' => 'common\components\UrlManagerCommon',
  36. 'subDomain' => Yii::getAlias('@frontendSubdomain'),
  37. 'domainName' => Yii::getAlias('@domainName'),
  38. 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlFrontend'),
  39. 'enablePrettyUrl' => true,
  40. 'showScriptName' => false,
  41. 'enableStrictParsing' => false,
  42. 'rules' => [
  43. ],
  44. ],
  45. 'urlManagerBackend' => [
  46. 'class' => 'common\components\UrlManagerCommon',
  47. 'subDomain' => Yii::getAlias('@backendSubdomain'),
  48. 'domainName' => Yii::getAlias('@domainName'),
  49. 'baseUrl' => Yii::getAlias('@baseUrl').Yii::getAlias('@baseUrlBackend'),
  50. 'enablePrettyUrl' => true,
  51. 'showScriptName' => false,
  52. 'enableStrictParsing' => false,
  53. 'rules' => [
  54. ],
  55. ],
  56. ],
  57. 'language' => 'fr-FR',
  58. ];