Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WsdlFactory.php
Go to the documentation of this file.
1 <?php
7 
12 {
16  protected $_objectManager;
17 
21  public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
22  {
23  $this->_objectManager = $objectManager;
24  }
25 
33  public function create($wsdlName, $endpointUrl)
34  {
35  return $this->_objectManager->create(
36  \Magento\Webapi\Model\Soap\Wsdl::class,
37  ['name' => $wsdlName, 'uri' => $endpointUrl]
38  );
39  }
40 }
$objectManager
Definition: bootstrap.php:17
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition: WsdlFactory.php:21
create($wsdlName, $endpointUrl)
Definition: WsdlFactory.php:33