diff options
author | Joas Schilling <coding@schilljs.com> | 2017-11-10 12:59:19 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-11-10 12:59:19 +0300 |
commit | d4dda0b30a81d45d6f1566ba68565d5bb5c73233 (patch) | |
tree | 126abbbe30154c48aca4305ebd0078ed76d6d9b4 /lib/Manager.php | |
parent | 58cde69d22179fd82f2ea782428a019d651f9167 (diff) |
Fix creating Participants
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r-- | lib/Manager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Manager.php b/lib/Manager.php index 99cc14ce7..0233cc263 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -64,13 +64,13 @@ class Manager { * @param array $row * @return Room */ - protected function createRoomObject(array $row) { + public function createRoomObject(array $row) { $activeSince = null; if (!empty($row['activeSince'])) { $activeSince = new \DateTime($row['activeSince']); } - return new Room($this->db, $this->secureRandom, $this->dispatcher, $this->hasher, (int) $row['id'], (int) $row['type'], $row['token'], $row['name'], $row['password'], (int) $row['activeGuests'], $activeSince); + return new Room($this, $this->db, $this->secureRandom, $this->dispatcher, $this->hasher, (int) $row['id'], (int) $row['type'], $row['token'], $row['name'], $row['password'], (int) $row['activeGuests'], $activeSince); } /** @@ -78,7 +78,7 @@ class Manager { * @param array $row * @return Participant */ - protected function createParticipantObject(Room $room, array $row) { + public function createParticipantObject(Room $room, array $row) { return new Participant($this->db, $room, $row['userId'], (int) $row['participantType'], (int) $row['lastPing'], $row['sessionId'], (bool) $row['inCall']); } |