You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.8KB

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