public function connect($configExternal)
    {
        $wsdl = $configExternal->get('salesforce.wsdl');

        if (empty($wsdl)) {
            $wsdl = __DIR__ . '/Wsdl/enterprise.wsdl.xml';
        }

        $user = $configExternal->get('salesforce.username');
        $pass = $configExternal->get('salesforce.password');
        $token = $configExternal->get('salesforce.token');

        try {
            $this->sfh->createConnection($wsdl);
            $this->sfh->login($user, $pass . $token);
        } catch (Exception $e) {
            throw new SalesforceException('Exception at Constructor' . $e->getMessage() . "\n\n" . $e->getTraceAsString());
        }
    }
public function connect($configExternal)
    {
        $wsdl = $configExternal->get('salesforce.wsdl');

        if (empty($wsdl)) {
            $wsdl = __DIR__ . '/Wsdl/enterprise.wsdl.xml';
        }

        $user = $configExternal->get('salesforce.username');
        $pass = $configExternal->get('salesforce.password');
        $token = $configExternal->get('salesforce.token');

        try {
            $this->sfh->createConnection($wsdl);
            $this->sfh->login($user, $pass . $token);
        } catch (Exception $e) {
            throw new SalesforceException('Exception at Constructor' . $e->getMessage() . "\n\n" . $e->getTraceAsString());
        }
    }
public function connect ( $ configExternal ) { $ wsdl = $ configExternal -> get ( 'salesforce.wsdl' ) ; if ( empty ( $ wsdl ) ) { $ wsdl = __DIR__ . '/Wsdl/enterprise.wsdl.xml' ; } $ user = $ configExternal -> get ( 'salesforce.username' ) ; $ pass = $ configExternal -> get ( 'salesforce.password' ) ; $ token = $ configExternal -> get ( 'salesforce.token' ) ; try { $ this -> sfh -> createConnection ( $ wsdl ) ; $ this -> sfh -> login ( $ user , $ pass . $ token ) ; } catch ( Exception $ e ) { throw new SalesforceException ( 'Exception at Constructor' . $ e -> getMessage ( ) . "\n\n" . $ e -> getTraceAsString ( ) ) ; } }
Connect user into salesforce

@param $configExternal
@throws SalesforceException
Connect user into salesforce