src/Viserio/Component/Events/ListenerPattern.php
public function unbind(EventManagerContract $dispatcher): void
    {
        foreach ($this->events as $eventName => $value) {
            $dispatcher->detach($eventName, $this->getListener());
        }

        $this->events = [];
    }
public function unbind(EventManagerContract $dispatcher): void
    {
        foreach ($this->events as $eventName => $value) {
            $dispatcher->detach($eventName, $this->getListener());
        }

        $this->events = [];
    }
Removes this pattern's listener from all events to which it was
previously added.

@param \Viserio\Component\Contract\Events\EventManager $dispatcher

@return void