| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace datainf\lib;
- ini_set('date.timezone', 'Asia/Shanghai');
- ini_set('memory_limit', '512M');
- /**
- *
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2019/5/20
- * Time: 9:19
- */
- use datainf\lib\GlobConfigs;
- class boot
- {
- public static function init()
- {
- self::loadConsts();
- self::loadfunction();
- }
- public static function loadConsts()
- {
- require_once(realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Mconsts.php');
- GlobConfigs::getInstance()->getAll();
- }
- public static function loadfunction()
- {
- require_once(realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'functions.php');
- }
- }
|