From d163bcb8845bdeccede1ebf7bc29e0adf9a05493 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Sat, 8 Sep 2018 14:00:06 +0200 Subject: [PATCH] Make private Functions proteced --- source/Jacwright/RestServer/RestServer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Jacwright/RestServer/RestServer.php b/source/Jacwright/RestServer/RestServer.php index 9e84b47..35d19a3 100755 --- a/source/Jacwright/RestServer/RestServer.php +++ b/source/Jacwright/RestServer/RestServer.php @@ -523,7 +523,7 @@ public function setStatus($code) { } } - private function xml_encode($mixed, $domElement = null, $DOMDocument = null) { //@todo add type hint for $domElement and $DOMDocument + protected function xml_encode($mixed, $domElement = null, $DOMDocument = null) { //@todo add type hint for $domElement and $DOMDocument if (is_null($DOMDocument)) { $DOMDocument = new DOMDocument; $DOMDocument->formatOutput = true; @@ -560,7 +560,7 @@ private function xml_encode($mixed, $domElement = null, $DOMDocument = null) { } } - private function corsHeaders() { + protected function corsHeaders() { // to support multiple origins we have to treat origins as an array $allowedOrigin = (array)$this->allowedOrigin; // if no origin header is present then requested origin can be anything (i.e *)