From e01ce5ff4c091291d838a559c2883ea0a0b32c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 1 Apr 2021 17:41:32 +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 --- Rpc/Consumer.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Rpc/Consumer.php diff --git a/Rpc/Consumer.php b/Rpc/Consumer.php new file mode 100644 index 00000000..cbda37f2 --- /dev/null +++ b/Rpc/Consumer.php @@ -0,0 +1,36 @@ +$name; + } + $method = 'get' . ucfirst($name); + if (method_exists($this, $method)) { + return $this->{$method}(); + } + return Snowflake::app()->get($name); + } + + +}