helperService = $helperService; $this->userService = $userService; } public function get() {} public function dontShowAgain($params) { $modal = $params['modalId'] ?? ''; $hidePermanently = ($params['hidePermanently'] ?? false) === 'on' ? true : false; if ($modal !== '') { $this->userService->updateUserSettings('modals', $modal, $hidePermanently); } return $this->tpl->emptyResponse(); } }