Change saveConfig() to write() for 2.4

Changed the save function to work with Symphony 2.4