main-local.php 602 B

123456789101112131415161718192021222324252627
  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' => 'zhEXXHOMbvnYJO8fxdjNuSgiMWPefuSC',
  7. ],
  8. ],
  9. ];
  10. if (YII_ENV_TEST) {
  11. // configuration adjustments for 'dev' environment
  12. $config['bootstrap'][] = 'debug';
  13. $config['modules']['debug'] = [
  14. 'class' => 'yii\debug\Module',
  15. ];
  16. $config['bootstrap'][] = 'gii';
  17. $config['modules']['gii'] = [
  18. 'class' => 'yii\gii\Module',
  19. ];
  20. }
  21. return $config;