/** * {@inheritdoc} */ public function onClose(ConnectionInterface $conn) { $this->_i--; $this->_in->info('onClose', ['#open' => $this->_i, 'id' => $conn->resourceId]); $decorated = $this->_connections[$conn]; $this->_connections->detach($conn); $this->_component->onClose($decorated); }
/** * {@inheritdoc} */ public function onClose(ConnectionInterface $conn) { $this->_i--; if (null !== $this->_in) { $this->_in->addInfo('onClose', array('#open' => $this->_i, 'id' => $conn->resourceId)); } $this->_component->onClose($conn); }