protected static function writeUpdateConfigOption($optionName,$optionValue) {
		
		// parse the YAML options
		try {
			$options = Yaml::parse(file_get_contents(self::$userConfigPath));
		} catch (ParseException $e) {
			Console::writeError("Config parse error in <path>".self::$userConfigPath."</path>: ".$e->getMessage());
		}
		
		// set this option for the current running of the app
		self::setOption($optionName, $optionValue);
		
		// modify the yaml file results
		$arrayFinder = new ArrayFinder($options);
		$arrayFinder->set($optionName, $optionValue);
		$options = $arrayFinder->get();
		
		// dump the YAML
		$configOutput = Yaml::dump($options, 3);
		
		// write out the new config file
		file_put_contents(self::$userConfigPath,$configOutput);
		
	}
protected static function writeUpdateConfigOption($optionName,$optionValue) {
		
		// parse the YAML options
		try {
			$options = Yaml::parse(file_get_contents(self::$userConfigPath));
		} catch (ParseException $e) {
			Console::writeError("Config parse error in <path>".self::$userConfigPath."</path>: ".$e->getMessage());
		}
		
		// set this option for the current running of the app
		self::setOption($optionName, $optionValue);
		
		// modify the yaml file results
		$arrayFinder = new ArrayFinder($options);
		$arrayFinder->set($optionName, $optionValue);
		$options = $arrayFinder->get();
		
		// dump the YAML
		$configOutput = Yaml::dump($options, 3);
		
		// write out the new config file
		file_put_contents(self::$userConfigPath,$configOutput);
		
	}
protected static function writeUpdateConfigOption ( $ optionName , $ optionValue ) { // parse the YAML options try { $ options = Yaml :: parse ( file_get_contents ( self :: $ userConfigPath ) ) ; } catch ( ParseException $ e ) { Console :: writeError ( "Config parse error in <path>" . self :: $ userConfigPath . "</path>: " . $ e -> getMessage ( ) ) ; } // set this option for the current running of the app self :: setOption ( $ optionName , $ optionValue ) ; // modify the yaml file results $ arrayFinder = new ArrayFinder ( $ options ) ; $ arrayFinder -> set ( $ optionName , $ optionValue ) ; $ options = $ arrayFinder -> get ( ) ; // dump the YAML $ configOutput = Yaml :: dump ( $ options , 3 ) ; // write out the new config file file_put_contents ( self :: $ userConfigPath , $ configOutput ) ; }
Write out the new config option value
@param  {String}       the name of the option to be changed
@param  {String}       the new value of the option to be changed
Write out the new config option value