notifyService->signers($fileId, $signers); } catch (\Throwable $th) { return new JSONResponse( [ 'messages' => [ [ 'type' => 'danger', 'message' => $th->getMessage() ] ] ], Http::STATUS_UNAUTHORIZED ); } return new JSONResponse([ 'message' => $this->l10n->t('Notification sent with success.') ], Http::STATUS_OK); } #[NoAdminRequired] #[NoCSRFRequired] public function signer($fileId, $signRequestId): JSONResponse { try { $this->notifyService->signer($fileId, $signRequestId); } catch (LibresignException $e) { throw $e; } catch (\Throwable $th) { return new JSONResponse( [ 'messages' => [ [ 'type' => 'danger', 'message' => $th->getMessage() ] ] ], Http::STATUS_UNAUTHORIZED ); } return new JSONResponse([ 'message' => $this->l10n->t('Notification sent with success.') ], Http::STATUS_OK); } #[NoAdminRequired] public function notificationDismiss(int $signRequestId, int $timestamp): JSONResponse { $this->notifyService->notificationDismiss( $signRequestId, $this->userSession->getUser(), $timestamp ); return new JSONResponse(); } }