web.php 709 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. return array(
  3. 'id' => 'bootstrap',
  4. 'basePath' => dirname(__DIR__),
  5. 'preload' => array('debug'),
  6. 'modules' => array(
  7. 'debug' => array(
  8. 'class' => 'yii\debug\Module',
  9. 'enabled' => YII_DEBUG && YII_ENV === 'dev',
  10. ),
  11. ),
  12. 'components' => array(
  13. 'cache' => array(
  14. 'class' => 'yii\caching\FileCache',
  15. ),
  16. 'user' => array(
  17. 'class' => 'yii\web\User',
  18. 'identityClass' => 'app\models\User',
  19. ),
  20. 'assetManager' => array(
  21. 'bundles' => require(__DIR__ . '/assets.php'),
  22. ),
  23. 'log' => array(
  24. 'targets' => array(
  25. array(
  26. 'class' => 'yii\log\FileTarget',
  27. 'levels' => array('error', 'warning'),
  28. ),
  29. ),
  30. ),
  31. ),
  32. 'params' => require(__DIR__ . '/params.php'),
  33. );