This commit is contained in:
Yurun
2021-12-21 13:21:12 +08:00
parent 2ca28f589f
commit 08935cfe5b
2 changed files with 32 additions and 46 deletions
+32 -1
View File
@@ -12,7 +12,6 @@
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
*/
include dirname(__DIR__) . '/exception/EndResponseException.class.php';
class baseRouter
{
/**
@@ -2781,3 +2780,35 @@ class super
if($this->scope == 'global') a($GLOBALS);
}
}
class EndResponseException extends \Exception
{
/**
* 响应内容
*
* @var string
*/
private $content;
/**
* @param string $content
*
* @return sellf
*/
public static function create($content = '')
{
$exception = new self;
$exception->content = $content;
return $exception;
}
/**
* Get 响应内容
*
* @return string
*/
public function getContent()
{
return $this->content;
}
}
@@ -1,45 +0,0 @@
<?php
/**
* ZenTaoPHP的EndResponseException类。
* The EndResponseException class file of ZenTaoPHP framework.
*
* @package framework
*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
*/
class EndResponseException extends \Exception
{
/**
* 响应内容
*
* @var string
*/
private $content;
/**
* @param string $content
*
* @return sellf
*/
public static function create($content = '')
{
$exception = new self;
$exception->content = $content;
return $exception;
}
/**
* Get 响应内容
*
* @return string
*/
public function getContent()
{
return $this->content;
}
}