Merge remote-tracking branch 'origin/master' into request_headers
Conflicts: DependencyInjection/BeSimpleSoapExtension.php Resources/config/webservice.xml WebServiceContext.php
This commit is contained in:
@ -27,9 +27,6 @@ use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
*/
|
||||
class WebServiceContext
|
||||
{
|
||||
private $requestHeaderMessageBinder;
|
||||
private $requestMessageBinder;
|
||||
private $responseMessageBinder;
|
||||
private $typeRepository;
|
||||
private $converterRepository;
|
||||
|
||||
@ -41,14 +38,10 @@ class WebServiceContext
|
||||
private $serviceBinder;
|
||||
private $serverFactory;
|
||||
|
||||
public function __construct(LoaderInterface $loader, DumperInterface $dumper, MessageBinderInterface $requestHeaderMessageBinder, MessageBinderInterface $requestMessageBinder, MessageBinderInterface $responseMessageBinder, TypeRepository $typeRepository, ConverterRepository $converterRepository, array $options) {
|
||||
public function __construct(LoaderInterface $loader, DumperInterface $dumper, TypeRepository $typeRepository, ConverterRepository $converterRepository, array $options) {
|
||||
$this->loader = $loader;
|
||||
$this->wsdlFileDumper = $dumper;
|
||||
|
||||
$this->requestHeaderMessageBinder = $requestHeaderMessageBinder;
|
||||
$this->requestMessageBinder = $requestMessageBinder;
|
||||
$this->responseMessageBinder = $responseMessageBinder;
|
||||
|
||||
$this->typeRepository = $typeRepository;
|
||||
$this->converterRepository = $converterRepository;
|
||||
|
||||
@ -92,7 +85,12 @@ class WebServiceContext
|
||||
public function getServiceBinder()
|
||||
{
|
||||
if (null === $this->serviceBinder) {
|
||||
$this->serviceBinder = new ServiceBinder($this->getServiceDefinition(), $this->requestHeaderMessageBinder, $this->requestMessageBinder, $this->responseMessageBinder);
|
||||
$this->serviceBinder = new ServiceBinder(
|
||||
$this->getServiceDefinition(),
|
||||
new $this->options['binder_request_header_class'](),
|
||||
new $this->options['binder_request_class'](),
|
||||
new $this->options['binder_response_class']()
|
||||
);
|
||||
}
|
||||
|
||||
return $this->serviceBinder;
|
||||
|
Reference in New Issue
Block a user