Yii.php 682 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. require __DIR__ . '/BaseYii.php';
  8. /**
  9. * Yii is a helper class serving common framework functionalities.
  10. *
  11. * It extends from [[\yii\BaseYii]] which provides the actual implementation.
  12. * By writing your own Yii class, you can customize some functionalities of [[\yii\BaseYii]].
  13. *
  14. * @author Qiang Xue <qiang.xue@gmail.com>
  15. * @since 2.0
  16. */
  17. class Yii extends \yii\BaseYii
  18. {
  19. }
  20. spl_autoload_register(['Yii', 'autoload'], true, true);
  21. Yii::$classMap = require __DIR__ . '/classes.php';
  22. Yii::$container = new yii\di\Container();