main.php 949 B

1234567891011121314151617181920212223242526272829303132333435
  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. ],
  33. 'params' => $params,
  34. ];