src/Base/Event.php
private function clearNotSubscribedListeners(): void
    {
        foreach ($this->listeners as $key => $listener) {
            if (!$listener->isSubscribed()) {
                unset($this->listeners[$key]);
            }
        }
    }
private function clearNotSubscribedListeners(): void
    {
        foreach ($this->listeners as $key => $listener) {
            if (!$listener->isSubscribed()) {
                unset($this->listeners[$key]);
            }
        }
    }
Очистит контейнер ото всех неподписанных слушателей.