private function parseParametersFile($pathParametersFile)
    {
        $this->parameters = parse_ini_file($pathParametersFile, true);

        if (isset($this->parameters['environment'])) {
            $this->setEnvironment($this->parameters['environment']);
        }

        if (isset($this->parameters['login'])) {
            $this->setLogin($this->parameters['login']);
        }

        if (isset($this->parameters['password'])) {
            $password = $this->parameters['password'];
            if (empty($this->parameters['isEncryptedPassword'])
            || $this->parameters['isEncryptedPassword'] === false
            || $this->parameters['isEncryptedPassword'] === 'false') {
                $password = $this->encryptPassword($password);
            }

            $this->setPassword($password);
        }

        if (isset($this->parameters['api_key'])) {
            $this->setApiKey($this->parameters['api_key']);
        }

        if (isset($this->parameters['ssl_enabled'])) {
            $this->setEnabledSSL($this->parameters['ssl_enabled']);

            $this->setCertClientLocation($this->parameters['cert_client_location']);
            $this->setCaChainClientLocation($this->parameters['ca_chain_client_location']);
            $this->setPrivateKeyClientLocation($this->parameters['private_key_client_location']);
            $this->setPrivateKeyClientPassword($this->parameters['private_key_client_password']);
        }

        return $this;
    }
private function parseParametersFile($pathParametersFile)
    {
        $this->parameters = parse_ini_file($pathParametersFile, true);

        if (isset($this->parameters['environment'])) {
            $this->setEnvironment($this->parameters['environment']);
        }

        if (isset($this->parameters['login'])) {
            $this->setLogin($this->parameters['login']);
        }

        if (isset($this->parameters['password'])) {
            $password = $this->parameters['password'];
            if (empty($this->parameters['isEncryptedPassword'])
            || $this->parameters['isEncryptedPassword'] === false
            || $this->parameters['isEncryptedPassword'] === 'false') {
                $password = $this->encryptPassword($password);
            }

            $this->setPassword($password);
        }

        if (isset($this->parameters['api_key'])) {
            $this->setApiKey($this->parameters['api_key']);
        }

        if (isset($this->parameters['ssl_enabled'])) {
            $this->setEnabledSSL($this->parameters['ssl_enabled']);

            $this->setCertClientLocation($this->parameters['cert_client_location']);
            $this->setCaChainClientLocation($this->parameters['ca_chain_client_location']);
            $this->setPrivateKeyClientLocation($this->parameters['private_key_client_location']);
            $this->setPrivateKeyClientPassword($this->parameters['private_key_client_password']);
        }

        return $this;
    }
private function parseParametersFile ( $ pathParametersFile ) { $ this -> parameters = parse_ini_file ( $ pathParametersFile , true ) ; if ( isset ( $ this -> parameters [ 'environment' ] ) ) { $ this -> setEnvironment ( $ this -> parameters [ 'environment' ] ) ; } if ( isset ( $ this -> parameters [ 'login' ] ) ) { $ this -> setLogin ( $ this -> parameters [ 'login' ] ) ; } if ( isset ( $ this -> parameters [ 'password' ] ) ) { $ password = $ this -> parameters [ 'password' ] ; if ( empty ( $ this -> parameters [ 'isEncryptedPassword' ] ) || $ this -> parameters [ 'isEncryptedPassword' ] === false || $ this -> parameters [ 'isEncryptedPassword' ] === 'false' ) { $ password = $ this -> encryptPassword ( $ password ) ; } $ this -> setPassword ( $ password ) ; } if ( isset ( $ this -> parameters [ 'api_key' ] ) ) { $ this -> setApiKey ( $ this -> parameters [ 'api_key' ] ) ; } if ( isset ( $ this -> parameters [ 'ssl_enabled' ] ) ) { $ this -> setEnabledSSL ( $ this -> parameters [ 'ssl_enabled' ] ) ; $ this -> setCertClientLocation ( $ this -> parameters [ 'cert_client_location' ] ) ; $ this -> setCaChainClientLocation ( $ this -> parameters [ 'ca_chain_client_location' ] ) ; $ this -> setPrivateKeyClientLocation ( $ this -> parameters [ 'private_key_client_location' ] ) ; $ this -> setPrivateKeyClientPassword ( $ this -> parameters [ 'private_key_client_password' ] ) ; } return $ this ; }
Parse le fichier de configuration.

@param $pathParametersFile
@return $this
Parse le fichier de configuration .