public function removeEventSubscriber(EventSubscriberInterface $subscriber)
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new EventDispatcher();
        }

        $this->dispatcher->removeSubscriber($subscriber);

        return $this;
    }
public function removeEventSubscriber(EventSubscriberInterface $subscriber)
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new EventDispatcher();
        }

        $this->dispatcher->removeSubscriber($subscriber);

        return $this;
    }
public function removeEventSubscriber ( EventSubscriberInterface $ subscriber ) { if ( ! $ this -> dispatcher ) { $ this -> dispatcher = new EventDispatcher ( ) ; } $ this -> dispatcher -> removeSubscriber ( $ subscriber ) ; return $ this ; }
Removes an event subscriber from the dispatcher.

@param EventSubscriberInterface $subscriber The subscriber to remove.

@return static The current instance.

@see EventDispatcherInterface::removeSubscriber()
Removes an event subscriber from the dispatcher .