class TenancyBroadcastManager extends BroadcastManager (View source)

Properties

static array $tenantBroadcasters

Names of broadcasters to always recreate using $this->resolve() (even when they're cached and available in the $broadcasters property).

Methods

get($name)

Override the get method so that the broadcasters in $tenantBroadcasters always get freshly resolved even when they're cached and available in the $broadcasters property, and that the resolved broadcaster will override the BroadcasterContract::class singleton.

void
passChannelsFromOriginalBroadcaster(Broadcaster $originalBroadcaster, Broadcaster $newBroadcaster)

No description

Details

protected get($name)

Override the get method so that the broadcasters in $tenantBroadcasters always get freshly resolved even when they're cached and available in the $broadcasters property, and that the resolved broadcaster will override the BroadcasterContract::class singleton.

If there's a cached broadcaster with the same name as $name, give its channels to the newly resolved bootstrapper.

Parameters

$name

protected void passChannelsFromOriginalBroadcaster(Broadcaster $originalBroadcaster, Broadcaster $newBroadcaster)

No description

Parameters

Broadcaster $originalBroadcaster
Broadcaster $newBroadcaster

Return Value

void