Fix location url from relative to absolute

This commit is contained in:
Gianluigi 'cocciagialla' Mammarella 2019-04-10 07:30:25 +02:00
parent cdf77dacd8
commit ca4991a9f6
1 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ use Symfony\Component\Debug\Exception\FlattenException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
/** /**
* @author Christian Kerl <christian-kerl@web.de> * @author Christian Kerl <christian-kerl@web.de>
@ -97,7 +98,7 @@ class SoapWebServiceController implements ContainerAwareInterface
$this->container->get('router')->generate( $this->container->get('router')->generate(
'_webservice_call', '_webservice_call',
array('webservice' => $webservice), array('webservice' => $webservice),
true UrlGeneratorInterface::ABSOLUTE_URL
) )
)); ));
@ -244,7 +245,7 @@ class SoapWebServiceController implements ContainerAwareInterface
return $this->soapResponse = $response; return $this->soapResponse = $response;
} }
private function getWebServiceContext($webservice) protected function getWebServiceContext($webservice)
{ {
$context = sprintf('besimple.soap.context.%s', $webservice); $context = sprintf('besimple.soap.context.%s', $webservice);