config = $config; $this->userId = $userId; $this->l10n = $l10n; } public function personal(string $epub_enable, string $pdf_enable, string $cbx_enable) { $this->config->setUserValue( $this->userId, Application::APP_ID, 'epub_enable', $epub_enable ); $this->config->setUserValue( $this->userId, Application::APP_ID, 'pdf_enable', $pdf_enable ); $this->config->setUserValue( $this->userId, Application::APP_ID, 'cbx_enable', $cbx_enable ); return new DataResponse([ 'data' => [ 'message' => $this->l10n->t('Your settings have been updated.'), ], ]); } }