From e6b22dc36fb9cf62a8c5cc376779725a67476869 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Sat, 24 Nov 2018 00:15:18 +0100 Subject: [PATCH] wip --- .../Pusher/Channels/ChannelManager.php | 4 ---- .../Pusher/Channels/LoggingChannel.php | 24 ------------------- 2 files changed, 28 deletions(-) delete mode 100644 src/LaravelEcho/Pusher/Channels/LoggingChannel.php diff --git a/src/LaravelEcho/Pusher/Channels/ChannelManager.php b/src/LaravelEcho/Pusher/Channels/ChannelManager.php index 6230311..2b2c46b 100644 --- a/src/LaravelEcho/Pusher/Channels/ChannelManager.php +++ b/src/LaravelEcho/Pusher/Channels/ChannelManager.php @@ -30,10 +30,6 @@ class ChannelManager protected function detectChannelClass($channelId): string { - if (starts_with($channelId, 'logging-')) { - return LoggingChannel::class; - } - if (starts_with($channelId, 'private-')) { return PrivateChannel::class; } diff --git a/src/LaravelEcho/Pusher/Channels/LoggingChannel.php b/src/LaravelEcho/Pusher/Channels/LoggingChannel.php deleted file mode 100644 index f09f23c..0000000 --- a/src/LaravelEcho/Pusher/Channels/LoggingChannel.php +++ /dev/null @@ -1,24 +0,0 @@ -verifySignature($connection, $payload); - - $this->verifyAdministrator($connection); - - parent::subscribe($connection, $payload); - } - - protected function verifyAdministrator(ConnectionInterface $connection) - { - throw_unless($connection->isAdmin, new InvalidConnectionException()); - } -} \ No newline at end of file