main-local.php 570 B

12345678910111213141516171819202122232425
  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' => '',
  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;