public function __construct(WAPConfig $config) { global $wgUser; $this->config = $config; $this->dbType = $config->getDBType(); $userClass = $config->getUserClassName(); $this->cu = $userClass::newFromUserObject($wgUser, $this->dbType); $this->wapDB = WAPDB::getInstance($this->dbType); }