src/Base/Event.php
public function clearListeners(bool $notSubscribedOnly = false): void
    {
        if ($notSubscribedOnly) {
            $this->clearNotSubscribedListeners();
        } else {
            $this->listeners = [];
        }
    }
public function clearListeners(bool $notSubscribedOnly = false): void
    {
        if ($notSubscribedOnly) {
            $this->clearNotSubscribedListeners();
        } else {
            $this->listeners = [];
        }
    }
public function clearListeners ( bool $ notSubscribedOnly = false ) : void { if ( $ notSubscribedOnly ) { $ this -> clearNotSubscribedListeners ( ) ; } else { $ this -> listeners = [ ] ; } }
Чистит контейнер, удаляя все события.

@param bool $notSubscribedOnly

@return void
Чистит контейнер удаляя все события .