/** * {@inheritdoc} */ public function onClose(ConnectionInterface $conn) { $this->app->onClose($conn); foreach ($this->topicLookup as $topic) { $topic->remove($conn); } }
/** * {@inheritdoc} */ public function onClose(ConnectionInterface $conn) { $this->app->onClose($conn); foreach ($this->topicLookup as $topic => $storage) { $storage->remove($conn); if (0 === $storage->count()) { unset($this->topicLookup[$topic]); } } }
/** * {@inheritdoc} */ public function onClose(ConnectionInterface $conn) { $decor = $this->connections[$conn]; $this->connections->detach($conn); $this->_decorating->onClose($decor); }