Inheritance: implements Sulu\Component\Websocket\WebsocketAppInterface
コード例 #1
0
ファイル: MessageDispatcherApp.php プロジェクト: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $connection)
 {
     $context = $this->getContext($connection);
     $this->messageDispatcher->onClose($connection, $context);
     parent::onClose($connection);
 }
コード例 #2
0
 public function __construct($appName, MessageDispatcherInterface $messageDispatcher, Cache $contextsCache)
 {
     parent::__construct($contextsCache);
     $this->name = $appName;
     $this->messageDispatcher = $messageDispatcher;
 }