Response: rename setMetaDataFrom() to copyMetaDataFrom()

refs #12583
This commit is contained in:
Alexander A. Klimov 2016-10-11 10:45:15 +02:00
parent 4d16656100
commit bf3cfda209
1 changed files with 2 additions and 2 deletions

View File

@ -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;