private function __construct(ConnectionConfiguration $connConfig)
 {
     if ($connConfig->getHost() == null) {
         throw new Exception("Host must be set to establish Workbench Context.");
     }
     if ($connConfig->getApiVersion() == null) {
         throw new Exception("API Version must be set to establish Workbench Context.");
     }
     $this->connConfig = $connConfig;
     $this->initializeCache();
     $this->defaultObject = false;
     $this->defaultObjectChanged = false;
     $this->sfdcUiSidLikelySet = false;
     $this->agreedToTerms = false;
 }
 protected function buildEndpoint(ConnectionConfiguration $connConfig)
 {
     return "http" . ($connConfig->isSecure() ? "s" : "") . "://" . $connConfig->getHost() . "/services/" . $this->getEndpointType() . "/" . $connConfig->getApiVersion();
 }
 protected function buildWsdlPath(ConnectionConfiguration $connConfig)
 {
     return "soapclient/sforce." . str_replace(".", "", max($this->getMinWsdlVersion(), $connConfig->getApiVersion())) . "." . $this->getWsdlType() . ".wsdl";
 }