1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:14:03 +00:00

Add comment

This commit is contained in:
lukinovec 2022-12-15 09:10:51 +01:00
parent b78a925f19
commit eb1d6e0bf8

View file

@ -47,6 +47,8 @@ class TenancyBroadcastManager extends BroadcastManager
return parent::get($name); return parent::get($name);
} }
// Because, unlike the original broadcaster, the newly resolved broadcaster won't have the channels registered in routes/channels.php
// Using it for broadcasting won't work, unless we make it have the original broadcaster's channels
protected function passChannelsFromOriginalBroadcaster(Broadcaster $originalBroadcaster, Broadcaster $newBroadcaster): void protected function passChannelsFromOriginalBroadcaster(Broadcaster $originalBroadcaster, Broadcaster $newBroadcaster): void
{ {
// invade() because channels can't be retrieved through any of the broadcaster's public methods // invade() because channels can't be retrieved through any of the broadcaster's public methods