private function createConnection() { $connection = new Database(new LazyDBConnectionProvider(DB_SLAVE), new LazyDBConnectionProvider(DB_MASTER)); $connection->setDBPrefix($GLOBALS['wgDBprefix']); $connection->resetTransactionProfiler($this->resetTransactionProfiler); return $connection; }