/**
  * @static
  * @param \Zend_Config $config
  * @return void
  */
 public static function setConfig(\Zend_Config $config)
 {
     self::$config = $config;
     $writer = new \Zend_Config_Writer_Xml(array("config" => $config, "filename" => PIMCORE_CONFIGURATION_DIRECTORY . "/extensions.xml"));
     $writer->write();
 }
 /**
  * @static
  * @param \Zend_Config $config
  * @return void
  */
 public static function setConfig(\Zend_Config $config)
 {
     self::$config = $config;
     $file = \Pimcore\Config::locateConfigFile("extensions.php");
     File::put($file, to_php_data_file_format(self::$config->toArray()));
 }