Skip to content

Commit 3103157

Browse files
author
prophet777
committed
Fix topic dispatcher
1 parent d4e71f9 commit 3103157

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Server/App/Dispatcher/TopicDispatcher.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
use Gos\Bundle\WebSocketBundle\Topic\PushableTopicInterface;
99
use Gos\Bundle\WebSocketBundle\Topic\TopicPeriodicTimer;
1010
use Gos\Bundle\WebSocketBundle\Topic\TopicPeriodicTimerInterface;
11+
use Psr\Log\LoggerInterface;
1112
use Psr\Log\NullLogger;
1213
use Ratchet\ConnectionInterface;
1314
use Ratchet\Wamp\Topic;
1415
use Ratchet\Wamp\TopicManager;
15-
use Rhumsaa\Uuid\Console\Exception;
16-
use Symfony\Component\HttpKernel\Log\LoggerInterface;
1716

1817
/**
1918
* @author Johann Saunier <[email protected]>
@@ -150,7 +149,7 @@ public function dispatch($calledMethod, ConnectionInterface $conn = null, Topic
150149

151150
if ($calledMethod === static::PUSH) {
152151
if (!$appTopic instanceof PushableTopicInterface) {
153-
throw new Exception(sprintf('Topic %s doesn\'t support push feature', $appTopic->getName()));
152+
throw new \Exception(sprintf('Topic %s doesn\'t support push feature', $appTopic->getName()));
154153
}
155154

156155
$appTopic->onPush($topic, $request, $payload, $provider);

0 commit comments

Comments
 (0)