1
0

main.php 1016 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. $params = array_merge(
  3. require __DIR__ . '/../../common/config/params.php',
  4. require __DIR__ . '/../../common/config/params-local.php',
  5. require __DIR__ . '/params.php',
  6. require __DIR__ . '/params-local.php'
  7. );
  8. return [
  9. 'id' => 'app-console',
  10. 'basePath' => dirname(__DIR__),
  11. 'bootstrap' => ['log'],
  12. 'controllerNamespace' => 'console\controllers',
  13. 'aliases' => [
  14. '@bower' => '@vendor/bower-asset',
  15. '@npm' => '@vendor/npm-asset',
  16. ],
  17. 'controllerMap' => [
  18. 'fixture' => [
  19. 'class' => 'yii\console\controllers\FixtureController',
  20. 'namespace' => 'common\fixtures',
  21. ],
  22. ],
  23. 'components' => [
  24. 'log' => [
  25. 'targets' => [
  26. [
  27. 'class' => 'yii\log\FileTarget',
  28. 'levels' => ['error', 'warning'],
  29. ],
  30. ],
  31. ],
  32. 'db' => require __DIR__ . '/../../common/config/db.php',
  33. ],
  34. 'params' => $params,
  35. ];