Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ServerFactory.php
Go to the documentation of this file.
1 <?php
9 
11 {
16  protected $_objectManager;
17 
21  protected $_soapHandler;
22 
29  public function __construct(
30  \Magento\Framework\ObjectManagerInterface $objectManager,
31  \Magento\Webapi\Controller\Soap\Request\Handler $soapHandler
32  ) {
33  $this->_objectManager = $objectManager;
34  $this->_soapHandler = $soapHandler;
35  }
36 
44  public function create($url, $options)
45  {
46  $soapServer = new \SoapServer($url, $options);
47  $soapServer->setObject($this->_soapHandler);
48  return $soapServer;
49  }
50 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Webapi\Controller\Soap\Request\Handler $soapHandler)
$objectManager
Definition: bootstrap.php:17