改名
This commit is contained in:
@@ -88,18 +88,18 @@ class BaseObject implements Configure
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
if (!method_exists($this, $name)) {
|
||||
throw new Exception("Not find " . get_called_class() . "::($name)");
|
||||
} else {
|
||||
$result = $this->$name(...$arguments);
|
||||
if (method_exists($this, 'defer')) {
|
||||
$this->defer();
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
// public function __call($name, $arguments)
|
||||
// {
|
||||
// if (!method_exists($this, $name)) {
|
||||
// throw new Exception("Not find " . get_called_class() . "::($name)");
|
||||
// } else {
|
||||
// $result = $this->$name(...$arguments);
|
||||
// if (method_exists($this, 'defer')) {
|
||||
// $this->defer();
|
||||
// }
|
||||
// return $result;
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* @param $message
|
||||
|
||||
Reference in New Issue
Block a user