dedicated Listener class, constants for events

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-08-05 00:30:20 +02:00
parent fd6e15b58c
commit 7dc64de2de
4 changed files with 107 additions and 32 deletions

View File

@@ -66,6 +66,9 @@ class SessionService {
return $session;
}
/**
* @throws DoesNotExistException
*/
public function syncSession(int $boardId, string $token) {
$session = $this->sessionMapper->find($boardId, $this->userId, $token);
$session->setLastContact($this->timeFactory->getTime());