diff --git a/fproject/Zend/Amf/Server.php b/fproject/Zend/Amf/Server.php index f03ddd7..484d39e 100644 --- a/fproject/Zend/Amf/Server.php +++ b/fproject/Zend/Amf/Server.php @@ -39,6 +39,7 @@ use fproject\amf\Request; use fproject\amf\HttpRequest; use fproject\amf\Response; +use fproject\amf\HttpResponse; /** * An AMF gateway server implementation to allow the connection of the Adobe Flash Player to @@ -720,8 +721,7 @@ public function setResponse($response) public function getResponse() { if (null === ($response = $this->_response)) { - require_once 'Zend/Amf/Response/Http.php'; - $this->setResponse(new Zend_Amf_Response_Http()); + $this->setResponse(new HttpResponse()); } return $this->_response; } diff --git a/fproject/Zend/Amf/Response/Http.php b/fproject/amf/HttpResponse.php similarity index 55% rename from fproject/Zend/Amf/Response/Http.php rename to fproject/amf/HttpResponse.php index f470745..2d31870 100644 --- a/fproject/Zend/Amf/Response/Http.php +++ b/fproject/amf/HttpResponse.php @@ -1,36 +1,29 @@ _server->setResponse('fproject\amf\Response'); $response = $this->_server->getResponse(); $this->assertTrue($response instanceof Response); - $this->assertFalse($response instanceof Zend_Amf_Response_Http); + $this->assertFalse($response instanceof HttpResponse); } /**