0
0

main-local.php 637 B

1234567891011121314151617181920212223242526
  1. <?php
  2. $config = [
  3. 'components' => [
  4. 'db' => require __DIR__ . '/../../common/config/db-local.php',
  5. 'request' => [
  6. // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
  7. 'cookieValidationKey' => '',
  8. ],
  9. ],
  10. ];
  11. if (!YII_ENV_TEST) {
  12. // configuration adjustments for 'dev' environment
  13. $config['bootstrap'][] = 'debug';
  14. $config['modules']['debug'] = [
  15. 'class' => 'yii\debug\Module',
  16. ];
  17. $config['bootstrap'][] = 'gii';
  18. $config['modules']['gii'] = [
  19. 'class' => 'yii\gii\Module',
  20. ];
  21. }
  22. return $config;