public static function newInstance($name, $data = null)
  {
    if (!is_array($data)) {
      $data = array();
    }

    $config = self::getInstance($name);
    $config->_data = $data;

    return $config;
  }
public static function newInstance($name, $data = null)
  {
    if (!is_array($data)) {
      $data = array();
    }

    $config = self::getInstance($name);
    $config->_data = $data;

    return $config;
  }
public static function newInstance ( $ name , $ data = null ) { if ( ! is_array ( $ data ) ) { $ data = array ( ) ; } $ config = self :: getInstance ( $ name ) ; $ config -> _data = $ data ; return $ config ; }
Shortcut for instance creation.

@param string $name Config name
@param array  $data Config data

@return Config
Shortcut for instance creation .