mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +00:00
Pass BroadcastManager to override closures (#23)
* pass BroadcastManager to override closures * Improve the broadcaster override syntax in the bootstrapper test * remove unnecessary return --------- Co-authored-by: lukinovec <lukinovec@gmail.com>
This commit is contained in:
parent
d9b63cdf59
commit
00a00a2aff
2 changed files with 7 additions and 11 deletions
|
|
@ -788,8 +788,8 @@ test('BroadcastChannelPrefixBootstrapper prefixes the channels events are broadc
|
|||
// Set up the 'testing' broadcaster override
|
||||
// Identical to the default Pusher override (BroadcastChannelPrefixBootstrapper::pusher())
|
||||
// Except for the parent class (TestingBroadcaster instead of PusherBroadcaster)
|
||||
BroadcastChannelPrefixBootstrapper::$broadcasterOverrides['testing'] = function () {
|
||||
return app(BroadcastManager::class)->extend('testing', function ($app, $config) {
|
||||
BroadcastChannelPrefixBootstrapper::$broadcasterOverrides['testing'] = function (BroadcastManager $broadcastManager) {
|
||||
$broadcastManager->extend('testing', function ($app, $config) {
|
||||
return new class('tenant broadcaster') extends TestingBroadcaster {
|
||||
protected function formatChannels(array $channels)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue