public function removeEventListener($eventName, $listener)
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new EventDispatcher();
        }

        $this->dispatcher->removeListener($eventName, $listener);

        return $this;
    }
public function removeEventListener($eventName, $listener)
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new EventDispatcher();
        }

        $this->dispatcher->removeListener($eventName, $listener);

        return $this;
    }
public function removeEventListener ( $ eventName , $ listener ) { if ( ! $ this -> dispatcher ) { $ this -> dispatcher = new EventDispatcher ( ) ; } $ this -> dispatcher -> removeListener ( $ eventName , $ listener ) ; return $ this ; }
Removes an event listener for the given event name.

@param string   $eventName The event name.
@param callable $listener  The callback to remove.

@return static The current instance.

@see EventDispatcherInterface::removeListener()
Removes an event listener for the given event name .