console.php 654 B

1234567891011121314151617181920212223
  1. <?php
  2. $config = [
  3. 'id' => 'basic-console',
  4. 'basePath' => dirname(__DIR__) . '/../',
  5. 'runtimePath' => dirname(__DIR__) . '/../../runtime',
  6. 'vendorPath' => dirname(__DIR__) . '/../../vendor',
  7. 'bootstrap' => ['log'],
  8. 'controllerNamespace' => 'app\commands',
  9. 'components' => require(__DIR__ . '/components.php'),
  10. 'modules' => require(__DIR__ . '/modules.php'),
  11. 'params' => require(__DIR__ . '/../params.php'),
  12. ];
  13. if (YII_ENV_DEV) {
  14. // configuration adjustments for 'dev' environment
  15. $config['bootstrap'][] = 'gii';
  16. $config['modules']['gii'] = [
  17. 'class' => 'yii\gii\Module',
  18. ];
  19. }
  20. return $config;