mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:14:02 +00:00
Fix global/central channel terminology
This commit is contained in:
parent
6c60a834d5
commit
ca400b51d2
3 changed files with 4 additions and 4 deletions
|
|
@ -101,7 +101,7 @@ class BroadcastChannelPrefixBootstrapper implements TenancyBootstrapper
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Give the tenant prefix to channels that aren't flagged as central
|
// Give the tenant prefix to channels that aren't flagged as global
|
||||||
if (! str($channel)->startsWith('global__')) {
|
if (! str($channel)->startsWith('global__')) {
|
||||||
$channel = str($channel)->after($defaultPrefix)->prepend($defaultPrefix . tenant()->getTenantKey() . '.');
|
$channel = str($channel)->after($defaultPrefix)->prepend($defaultPrefix . tenant()->getTenantKey() . '.');
|
||||||
}
|
}
|
||||||
|
|
@ -143,7 +143,7 @@ class BroadcastChannelPrefixBootstrapper implements TenancyBootstrapper
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Give the tenant prefix to channels that aren't flagged as central
|
// Give the tenant prefix to channels that aren't flagged as global
|
||||||
if (! str($channel)->startsWith('global__')) {
|
if (! str($channel)->startsWith('global__')) {
|
||||||
$channel = str($channel)->after($defaultPrefix)->prepend($defaultPrefix . tenant()->getTenantKey() . '.');
|
$channel = str($channel)->after($defaultPrefix)->prepend($defaultPrefix . tenant()->getTenantKey() . '.');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -804,7 +804,7 @@ test('BroadcastChannelPrefixBootstrapper prefixes the channels events are broadc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip prefixing channels flagged with the central channel prefix
|
// Skip prefixing channels flagged with the global channel prefix
|
||||||
if (! str($channel)->startsWith('global__')) {
|
if (! str($channel)->startsWith('global__')) {
|
||||||
$channel = str($channel)->after($defaultPrefix)->prepend($defaultPrefix . tenant()->getTenantKey() . '.');
|
$channel = str($channel)->after($defaultPrefix)->prepend($defaultPrefix . tenant()->getTenantKey() . '.');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ test('broadcasting channel helpers register channels correctly', function() {
|
||||||
|
|
||||||
expect($getChannels())->toBeEmpty();
|
expect($getChannels())->toBeEmpty();
|
||||||
|
|
||||||
// Central channel prefixes the channel name with 'global__'
|
// Global channel helper prefixes the channel name with 'global__'
|
||||||
global_channel($channelName, $channelClosure);
|
global_channel($channelName, $channelClosure);
|
||||||
|
|
||||||
// Channel prefixed with 'global__' found
|
// Channel prefixed with 'global__' found
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue