main-local.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. $config = [
  3. 'components' => [
  4. 'request' => [
  5. // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
  6. 'cookieValidationKey' => 'o83yA7NsYp3sNfG9AjO8hbXq5ejTAvyt',
  7. ],
  8. 'dbCrm' => require(__DIR__ . '/../../common/config/db.php'),
  9. 'mailer' => [
  10. 'class' => 'yii\swiftmailer\Mailer',
  11. 'useFileTransport' => false,
  12. 'transport' => [
  13. 'class' => 'Swift_SmtpTransport',
  14. 'host' => 'smtp.sendgrid.net',
  15. 'username' => 'apikey',
  16. 'password' => "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",
  17. 'port' => '465',
  18. 'encryption' => 'ssl',
  19. ],
  20. 'messageConfig' => [
  21. 'charset' => 'UTF-8',
  22. 'from' => ['admin@vegardmkt.com' => 'Vegard']
  23. ],
  24. ],
  25. ],
  26. ];
  27. if (YII_ENV_DEV) {
  28. // configuration adjustments for 'dev' environment
  29. $config['bootstrap'][] = 'debug';
  30. $config['modules']['debug'] = [
  31. 'class' => 'yii\debug\Module',
  32. ];
  33. $config['bootstrap'][] = 'gii';
  34. $config['modules']['gii'] = [
  35. 'class' => 'yii\gii\Module',
  36. ];
  37. }
  38. return $config;