mirror of https://github.com/sualko/cloud_bbb
parent
adc6a7437b
commit
e1a6003e19
|
@ -79,6 +79,10 @@ class RoomService {
|
||||||
$room->setAccess($access);
|
$room->setAccess($access);
|
||||||
$room->setUserId($userId);
|
$room->setUserId($userId);
|
||||||
|
|
||||||
|
if ($access === Room::ACCESS_PASSWORD) {
|
||||||
|
$room->setPassword($this->humanReadableRandom(8));
|
||||||
|
}
|
||||||
|
|
||||||
$createdRoom = $this->mapper->insert($room);
|
$createdRoom = $this->mapper->insert($room);
|
||||||
|
|
||||||
$this->eventDispatcher->dispatch(RoomCreatedEvent::class, new RoomCreatedEvent($createdRoom));
|
$this->eventDispatcher->dispatch(RoomCreatedEvent::class, new RoomCreatedEvent($createdRoom));
|
||||||
|
|
Loading…
Reference in New Issue