src/Core/Configuration/LocalConfigReader.php
public static function ReadConfigurationFromFile($filePath, $OAuthOption = CoreConstants::OAUTH1)
    {
        $ippConfig = new IppConfiguration();

        try {
            if (isset($filePath) && file_exists($filePath)) {
                $xmlObj = simplexml_load_file($filePath);
            } else {
                // $xmlObj = simplexml_load_file(PATH_SDK_ROOT . 'sdk.config');
                 throw new \Exception("Can't Read Configuration from file: ". $filePath);
            }

            LocalConfigReader::initializeOAuthSettings($xmlObj, $ippConfig, $OAuthOption);
            LocalConfigReader::initializeRequestAndResponseSerializationAndCompressionFormat($xmlObj, $ippConfig);
            LocalConfigReader::intializaeServiceBaseURLAndLogger($xmlObj, $ippConfig);
            LocalConfigReader::initializeAPIEntityRules($xmlObj, $ippConfig);
            LocalConfigReader::setupMinorVersion($ippConfig, $xmlObj);

            return $ippConfig;
        } catch (\Exception $e) {
            throw new SdkException("Error Reading the ");
        }
    }
public static function ReadConfigurationFromFile($filePath, $OAuthOption = CoreConstants::OAUTH1)
    {
        $ippConfig = new IppConfiguration();

        try {
            if (isset($filePath) && file_exists($filePath)) {
                $xmlObj = simplexml_load_file($filePath);
            } else {
                // $xmlObj = simplexml_load_file(PATH_SDK_ROOT . 'sdk.config');
                 throw new \Exception("Can't Read Configuration from file: ". $filePath);
            }

            LocalConfigReader::initializeOAuthSettings($xmlObj, $ippConfig, $OAuthOption);
            LocalConfigReader::initializeRequestAndResponseSerializationAndCompressionFormat($xmlObj, $ippConfig);
            LocalConfigReader::intializaeServiceBaseURLAndLogger($xmlObj, $ippConfig);
            LocalConfigReader::initializeAPIEntityRules($xmlObj, $ippConfig);
            LocalConfigReader::setupMinorVersion($ippConfig, $xmlObj);

            return $ippConfig;
        } catch (\Exception $e) {
            throw new SdkException("Error Reading the ");
        }
    }
Reads the configuration from the config file and converts it to custom
config objects which the end developer will use to get or set the properties.

@param $filePath
A Customer FilePath. If different than the default sdk.config file
@return IppConfiguration The custom config object.