[SoapBundle] Fixed SoapWebServiceController to keep compatibility with Symfony 2.0

This commit is contained in:
Francis Besset 2013-08-06 17:04:24 +02:00
parent 990cca2783
commit 42d38653af

View File

@ -71,7 +71,11 @@ class SoapWebServiceController extends ContainerAware
ob_start();
$this->soapServer->handle($this->soapRequest->getSoapMessage());
return $this->getResponse()->setContent(ob_get_clean());
$response = $this->getResponse();
$response->setContent(ob_get_clean());
// The Symfony 2.0 Response::setContent() does not return the Response instance
return $response;
}
/**