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.

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-backend',
  10. 'basePath' => dirname(__DIR__),
  11. 'controllerNamespace' => 'backend\controllers',
  12. 'defaultRoute' => 'site/index',
  13. 'bootstrap' => ['log'],
  14. 'modules' => [],
  15. 'components' => [
  16. 'user' => [
  17. 'identityClass' => 'common\models\User',
  18. 'enableAutoLogin' => true,
  19. ],
  20. 'log' => [
  21. 'traceLevel' => YII_DEBUG ? 3 : 0,
  22. 'targets' => [
  23. [
  24. 'class' => 'yii\log\FileTarget',
  25. 'levels' => ['error', 'warning'],
  26. ],
  27. ],
  28. ],
  29. 'errorHandler' => [
  30. 'errorAction' => 'site/error',
  31. ],
  32. ],
  33. 'params' => $params,
  34. ];