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); + } + + +}