From 9ee67872e72a16ddadff84d8cdf6107552d83c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 16:55:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/BaseObject.php | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/System/Abstracts/BaseObject.php b/System/Abstracts/BaseObject.php index 1a04806e..639ac53e 100644 --- a/System/Abstracts/BaseObject.php +++ b/System/Abstracts/BaseObject.php @@ -141,38 +141,6 @@ class BaseObject implements Configure } - /** - * @param string $name - * @param array $arguments - * @return mixed - * @throws Exception - */ - public function __call(string $name, array $arguments): mixed - { - var_dump(get_called_class() . '::' . $name); - if (!Snowflake::app()->has('aop')) { - return call_user_func([$this, $name], $arguments); - } - return \aop([$this, $name], $arguments); - } - - - /** - * @param string $name - * @param array $arguments - * @return mixed - * @throws Exception - */ - public static function __callStatic(string $name, array $arguments): mixed - { - var_dump(get_called_class() . '::' . $name); - if (!Snowflake::app()->has('aop')) { - return call_user_func([get_called_class(), $name], $arguments); - } - return \aop([get_called_class(), $name], $arguments); - } - - /** * @param mixed $message * @param string $method @@ -191,6 +159,7 @@ class BaseObject implements Configure $socket->output($message); } + /** * @param mixed $message * @param string $method