/** * {@inheritdoc} */ public function onClose(ConnectionInterface $connection) { $context = $this->getContext($connection); $this->messageDispatcher->onClose($connection, $context); parent::onClose($connection); }
public function __construct($appName, MessageDispatcherInterface $messageDispatcher, Cache $contextsCache) { parent::__construct($contextsCache); $this->name = $appName; $this->messageDispatcher = $messageDispatcher; }