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.

main.php 902 B

3 years ago
123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $params = array_merge(
  3. require(ROOT_PATH . '/console/config/params.php'),
  4. require(ROOT_PATH . '/console/config/params-local.php')
  5. );
  6. return [
  7. 'charset' => 'utf-8',
  8. 'language' => 'zh-CN',
  9. 'timeZone' => 'Asia/Shanghai',
  10. 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
  11. 'id' => 'app-console',
  12. 'basePath' => dirname(__DIR__),
  13. 'bootstrap' => ['log'],
  14. 'controllerNamespace' => 'console\controllers',
  15. 'controllerMap' => [
  16. 'fixture' => [
  17. 'class' => 'yii\console\controllers\FixtureController',
  18. 'namespace' => 'common\fixtures',
  19. ],
  20. ],
  21. 'components' => [
  22. 'log' => [
  23. 'targets' => [
  24. [
  25. 'class' => 'yii\log\FileTarget',
  26. 'levels' => ['error', 'warning'],
  27. ],
  28. ],
  29. ],
  30. ],
  31. 'params' => $params,
  32. ];