Smalot\Magento\RemoteAdapter::__construct PHP Method

__construct() public method

public __construct ( string $path, string $apiUser, string $apiKey, array $options = [], boolean $autoLogin = true )
$path string
$apiUser string
$apiKey string
$options array
$autoLogin boolean
    public function __construct($path, $apiUser, $apiKey, $options = array(), $autoLogin = true)
    {
        $this->wsdl = rtrim($path, '/') . '/index.php/api/soap/?wsdl';
        $this->apiUser = $apiUser;
        $this->apiKey = $apiKey;
        $this->autoLogin = $autoLogin;
        $this->setOptions($options);
        @($this->soapClient = new \SoapClient($this->wsdl, $this->getOptions()));
    }

Usage Example

Example #1
0
 /**
  * @param string $connection
  * @param string $path
  * @param string $apiUser
  * @param string $apiKey
  * @param array  $options
  * @param bool   $autoLogin
  */
 public function __construct($connection, $path, $apiUser, $apiKey, $options = array(), $autoLogin = true)
 {
     $this->connection = $connection;
     parent::__construct($path, $apiUser, $apiKey, $options, $autoLogin);
 }