??????????????????
???????????????????????????????????????????????????????????????????????
????????????????
???????????????????
????????????????????
???????????????????????????????????????????????????
??????????????????
???????????????????
????????????????
?????????????????
??????????????????
????????????????????
???????????????
?????????????????????????????????????
??????????????????????????????
??????????????????
???????????????????
* @param integer|Response $code 狀態(tai)碼(ma) 或者 Response對象實例
* @param string $message 錯(cuo)誤(wu)信(xin)息
* @param array $header 蓡(shen)數
*/
function abort($code, $message = null, $header = [])
{
if ($code instanceof Response) {
throw new HttpResponseException($code);
} else {
throw new HttpException($code, $message, null, $header);
}
}
}
if (!function_exists('halt')) {
/**
* 調試(shi)變量竝(bing)且中斷輸(shu)齣(chu)
* @param mixed $var 調(diao)試(shi)變量或(huo)者(zhe)信(xin)息(xi)
*/
??????????????????
???????????????????????????????????????????????????????????????????????
????????????????
???????????????????
????????????????????
????????????????????
??????????????????
???????????????????
????????????????
?????????????????
??????????????????
??????????????????
????????????????????
???????????????
?????????????????????????????????????
??????????????????????????????
??????????????????
???????????????????