[icinga-checkins] icinga.org: icingaweb2/master: Response: rename setMetaDataFrom() to copyMetaDataFrom()

git at icinga.org git at icinga.org
Tue Oct 11 10:46:40 CEST 2016


Module: icingaweb2
Branch: master
Commit: bf3cfda209d9ee442f675eedd2f85a3c1da23952
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=bf3cfda209d9ee442f675eedd2f85a3c1da23952

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Tue Oct 11 10:45:15 2016 +0200

Response: rename setMetaDataFrom() to copyMetaDataFrom()

refs #12583

---

 library/Icinga/Web/Response.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php
index 7e0b896..af3e1e2 100644
--- a/library/Icinga/Web/Response.php
+++ b/library/Icinga/Web/Response.php
@@ -213,7 +213,7 @@ class Response extends Zend_Controller_Response_Http
     public function json()
     {
         $response = new JsonResponse();
-        $response->setMetaDataFrom($this);
+        $response->copyMetaDataFrom($this);
         return $response;
     }
 
@@ -302,7 +302,7 @@ class Response extends Zend_Controller_Response_Http
      *
      * @return  $this
      */
-    protected function setMetaDataFrom(self $response)
+    protected function copyMetaDataFrom(self $response)
     {
         $this->_headers = $response->_headers;
         $this->_headersRaw = $response->_headersRaw;



More information about the icinga-checkins mailing list