// +---------------------------------------------------------------------- // [ 搴旂敤鍏ュ彛鏂囦欢 ] namespace think; // 璋冭瘯妯″紡寮€鍏 宸茬粡绉诲埌.env鏂囦欢涓紝APP_DEBUG = true //define('APP_DEBUG', true); // 瀹氫箟CMF鏍圭洰褰?鍙洿鏀规鐩綍 define('CMF_ROOT', dirname(__DIR__) . '/'); // 瀹氫箟CMF鏁版嵁鐩綍,鍙洿鏀规鐩綍 define('CMF_DATA', CMF_ROOT . 'data/'); // 瀹氫箟搴旂敤鐩綍 define('APP_PATH', CMF_ROOT . 'app/'); // 瀹氫箟缃戠珯鍏ュ彛鐩綍 define('WEB_ROOT', __DIR__ . '/'); require CMF_ROOT . 'vendor/autoload.php'; // 鎵цHTTP搴旂敤骞跺搷搴 $http = (new App())->http; $response = $http->run(); $response->send(); $http->end($response);