mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 18:04:03 +00:00
Add 'reverb' to TenancyBroadcastManager::$tenantBroadcasters
This commit is contained in:
parent
ef476c5361
commit
f8528fc9ac
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ class TenancyBroadcastManager extends BroadcastManager
|
|||
* - should inherit the original broadcaster's channels (= the channels registered in
|
||||
* the central context, e.g. in routes/channels.php, before this manager overrides the bound BroadcastManager).
|
||||
*/
|
||||
public static array $tenantBroadcasters = ['pusher', 'ably'];
|
||||
public static array $tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
|
||||
/**
|
||||
* Override the get method so that the broadcasters in static::$tenantBroadcasters
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ beforeEach(function () {
|
|||
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
|
||||
|
||||
BroadcastingConfigBootstrapper::$credentialsMap = [];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably'];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
BroadcastingConfigBootstrapper::$credentialsMap = [];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably'];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
});
|
||||
|
||||
test('BroadcastingConfigBootstrapper binds TenancyBroadcastManager to BroadcastManager and reverts the binding when tenancy is ended', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue