boot.php 499 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace datainf\lib;
  3. ini_set('date.timezone','Asia/Shanghai');
  4. ini_set('memory_limit', '512M');
  5. /**
  6. *
  7. * Created by PhpStorm.
  8. * User: Administrator
  9. * Date: 2019/5/20
  10. * Time: 9:19
  11. */
  12. use datainf\lib\GlobConfigs;
  13. class boot
  14. {
  15. public static function init(){
  16. self::loadConsts();
  17. }
  18. public static function loadConsts(){
  19. require_once(realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Mconsts.php');
  20. GlobConfigs::getInstance()->getAll();
  21. }
  22. }