src/DomainEventPublisher.php
public function removeListeners(string $eventName): void
    {
        foreach ($this->dispatcher->getListeners($eventName) as $listener) {
            $this->removeListener($eventName, $listener);
        }
    }
public function removeListeners(string $eventName): void
    {
        foreach ($this->dispatcher->getListeners($eventName) as $listener) {
            $this->removeListener($eventName, $listener);
        }
    }
public function removeListeners ( string $ eventName ) : void { foreach ( $ this -> dispatcher -> getListeners ( $ eventName ) as $ listener ) { $ this -> removeListener ( $ eventName , $ listener ) ; } }
Remove all event listeners

@param string $eventName

@return void
Remove all event listeners