appConfig, 'getAppValueString')) { return $this->appConfig->getAppValue('jwt_secret_key'); } return $this->appConfig->getAppValueString('jwt_secret_key'); } public function getMaxFileSize(): int { if (!method_exists($this->appConfig, 'getAppValueInt')) { return (int)$this->appConfig->getAppValue('max_file_size', '10'); } return $this->appConfig->getAppValueInt('max_file_size', 10); } public function setMaxFileSize(int $maxFileSize): void { if (!method_exists($this->appConfig, 'setAppValueInt')) { $this->appConfig->setAppValue('max_file_size', (string)$maxFileSize); return; } $this->appConfig->setAppValueInt('max_file_size', $maxFileSize); } public function getCollabBackendUrl(): string { if (!method_exists($this->appConfig, 'getAppValueString')) { return $this->trimUrl($this->appConfig->getAppValue('collabBackendUrl')); } return $this->trimUrl($this->appConfig->getAppValueString('collabBackendUrl')); } public function setCollabBackendUrl(string $collabBackendUrl): void { if (!method_exists($this->appConfig, 'setAppValueString')) { $this->appConfig->setAppValue('collabBackendUrl', $collabBackendUrl); return; } $this->appConfig->setAppValueString('collabBackendUrl', $collabBackendUrl); } private function trimUrl(string $url): string { return rtrim(trim($url), '/'); } public function getWhiteboardSharedSecret(): string { if (!method_exists($this->appConfig, 'getAppValueString')) { return $this->appConfig->getAppValue('jwt_secret_key'); } return $this->appConfig->getAppValueString('jwt_secret_key'); } public function setWhiteboardSharedSecret(string $jwtSecretKey): void { if (!method_exists($this->appConfig, 'setAppValueString')) { $this->appConfig->setAppValue('jwt_secret_key', $jwtSecretKey); return; } $this->appConfig->setAppValueString('jwt_secret_key', $jwtSecretKey); } public function getDisableExternalLibraries(): bool { return $this->appConfig->getAppValueBool('disable_external_libraries'); } }