설명 없음
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.

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env php
  2. <?php
  3. // +----------------------------------------------------------------------
  4. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  5. // +----------------------------------------------------------------------
  6. // | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
  7. // +----------------------------------------------------------------------
  8. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  9. // +----------------------------------------------------------------------
  10. // | Author: yunwuxin <448901948@qq.com>
  11. // +----------------------------------------------------------------------
  12. namespace think;
  13. define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
  14. define('APP_PATH', ROOT_PATH . 'application' . DIRECTORY_SEPARATOR);
  15. // 加载基础文件
  16. require __DIR__ . '/thinkphp/base.php';
  17. // 应用初始化
  18. Container::pull('app')->path(__DIR__ . '/application/')->initialize();
  19. // 钩子
  20. Container::pull('hook')->listen('app_init');
  21. // 控制台初始化
  22. Console::init();