69 parent::__construct( $info );
70 $this->dbType = $info[
'dbType'];
71 $this->dbServer = $info[
'dbServer'];
72 $this->dbUser = $info[
'dbUser'];
73 $this->dbPassword = $info[
'dbPassword'];
74 $this->dbName = $info[
'dbName'];
75 $this->dbFlags = $info[
'dbFlags'];
76 $this->tablePrefix = $info[
'tablePrefix'];
84 if ( !isset( $this->dbConn ) ) {
113 return function ( $index ) use (
$type, $params ) {
114 return Database::factory(
$type, $params );
133 $args = func_get_args();
142 throw new MWException( static::class .
': write operations are not supported.' );