From 526d81d3e18b87118494d7df8687579677e0e080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=BC=E5=90=B8=E4=BA=8C=E6=B0=A7=E5=8C=96=E7=A2=B3?= Date: Wed, 18 Apr 2018 12:46:20 +0800 Subject: [PATCH] for more extended functions --- src/Hprose/Service.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Hprose/Service.php b/src/Hprose/Service.php index 198a6a69..8782677e 100644 --- a/src/Hprose/Service.php +++ b/src/Hprose/Service.php @@ -226,7 +226,7 @@ protected function nextTick($callback) { } return call_user_func_array($context->method, $args); } - private function inputFilter($data, stdClass $context) { + protected function inputFilter($data, stdClass $context) { for ($i = count($this->filters) - 1; $i >= 0; $i--) { $data = $this->filters[$i]->inputFilter($data, $context); } @@ -285,7 +285,7 @@ public function endError($error, stdClass $context) { $stream->close(); return $data; } - private function beforeInvoke($name, array &$args, stdClass $context) { + protected function beforeInvoke($name, array &$args, stdClass $context) { try { $self = $this; if ($this->onBeforeInvoke !== null) { @@ -428,7 +428,7 @@ private function beforeInvoke($name, array &$args, stdClass $context) { $stream->close(); return $data; } - private function doInvoke(BytesIO $stream, stdClass $context) { + protected function doInvoke(BytesIO $stream, stdClass $context) { $results = array(); $reader = new Reader($stream); do {