public static function getInstance($type = 'default') { if (!isset(self::$instance[$type])) { self::$instance[$type] = new static(\Panada\Resource\Config::database()[$type]); } return self::$instance[$type]; }
public static function getInstance($type = 'default') { return new static(Resource\Config::database()[$type], false); }