/**
  * Set config object into this class.
  *
  * @param   \Joomla\Registry\Registry $config The config object.
  *
  * @return  void
  */
 public static function setConfig(Registry $config)
 {
     self::$config = $config;
 }
 /**
  * Set config object into this class.
  *
  * @param   Registry $config The config object.
  *
  * @return  void
  */
 public static function setConfig($config)
 {
     if ($config instanceof \Joomla\Registry\Registry) {
         $config = new Registry($config->toArray());
     }
     self::$config = $config;
 }