Ejemplo n.º 1
0
 /**
  * @return $this
  */
 protected function createTransport()
 {
     $transport = new MagentoSoapTransport();
     $transport->setAdminUrl('http://localhost/magento/admin');
     $transport->setApiKey('key');
     $transport->setApiUser('user');
     $transport->setIsExtensionInstalled(true);
     $transport->setIsWsiMode(false);
     $transport->setWebsiteId('1');
     $transport->setWsdlUrl('http://localhost/magento/api/v2_soap?wsdl=1');
     $transport->setWebsites([['id' => 1, 'label' => 'Website ID: 1, Stores: English, French, German']]);
     $this->em->persist($transport);
     $this->transport = $transport;
     return $this;
 }