From faa1a84c0bcb4cee0c63080bd5d82fdafb8c6a1e Mon Sep 17 00:00:00 2001 From: Pierre-Yves LEBECQ Date: Wed, 17 Jul 2013 11:20:59 +0200 Subject: [PATCH] [Controller] Prevented instanciation of a new SoapFault if the catched exception is already a SoapFault. --- Controller/SoapWebServiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/SoapWebServiceController.php b/Controller/SoapWebServiceController.php index becd6f5..c2d7c1c 100644 --- a/Controller/SoapWebServiceController.php +++ b/Controller/SoapWebServiceController.php @@ -126,7 +126,7 @@ class SoapWebServiceController extends ContainerAware } catch (\Exception $e) { $this->soapResponse = new Response(null, 500); - if ($this->container->getParameter('kernel.debug')) { + if ($e instanceof \SoapFault || $this->container->getParameter('kernel.debug')) { throw $e; }