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.

25 lines
570 B

5 years ago
  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;