From f279261b57f990639d7416460a5014a6d5655237 Mon Sep 17 00:00:00 2001 From: freek Date: Wed, 21 Nov 2018 22:19:52 +0100 Subject: [PATCH] wip --- src/LaravelEcho/Pusher/Channels/ChannelManager.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/LaravelEcho/Pusher/Channels/ChannelManager.php b/src/LaravelEcho/Pusher/Channels/ChannelManager.php index 1ccd3f6..4b8a213 100644 --- a/src/LaravelEcho/Pusher/Channels/ChannelManager.php +++ b/src/LaravelEcho/Pusher/Channels/ChannelManager.php @@ -13,14 +13,11 @@ class ChannelManager public function findOrCreate(string $appId, string $channelId): Channel { - if (! isset($this->channels[$appId][$channelId])) { - /**TODO: make this variable to go away */ $channelClass = $this->detectChannelClass($channelId); - array_set($this->channels, "{$appId}.{$channelId}", new $channelClass($channelId)); - + $this->channels[$appId][$channelId] = new $channelClass($channelId); } return $this->channels[$appId][$channelId];