diff --git a/src/ET_Client.php b/src/ET_Client.php index b06bbb0..f362a25 100755 --- a/src/ET_Client.php +++ b/src/ET_Client.php @@ -95,15 +95,16 @@ class ET_Client extends SoapClient * proxyusername - proxy server user name
* proxypassword - proxy server password
* sslverifypeer - Require verification of peer name
+ * @param boolean $readConfigFromFile Default true, read the config.php file if it exists */ - function __construct($getWSDL = false, $debug = false, $params = null) + function __construct($getWSDL = false, $debug = false, $params = null, $readConfigFromFile = true) { $tenantTokens = array(); $config = false; $this->xmlLoc = 'ExactTargetWSDL.xml'; - if (file_exists(realpath("config.php"))) + if ($readConfigFromFile && file_exists(realpath("config.php"))) $config = include 'config.php'; if ($config)