public function disableRevisionListener()
    {
        foreach ($this->em->getEventManager()->getListeners() as $event => $listeners) {
            foreach ($listeners as $hash => $listener) {
                if ($listener instanceof RevisionListener) {
                    $this->revisionListener = $listener;
                    break 2;
                }
            }
        }

        if ($this->revisionListener) {
            $this->revisionListener->setActive(false);
        }
    }
public function disableRevisionListener()
    {
        foreach ($this->em->getEventManager()->getListeners() as $event => $listeners) {
            foreach ($listeners as $hash => $listener) {
                if ($listener instanceof RevisionListener) {
                    $this->revisionListener = $listener;
                    break 2;
                }
            }
        }

        if ($this->revisionListener) {
            $this->revisionListener->setActive(false);
        }
    }
public function disableRevisionListener ( ) { foreach ( $ this -> em -> getEventManager ( ) -> getListeners ( ) as $ event => $ listeners ) { foreach ( $ listeners as $ hash => $ listener ) { if ( $ listener instanceof RevisionListener ) { $ this -> revisionListener = $ listener ; break 2 ; } } } if ( $ this -> revisionListener ) { $ this -> revisionListener -> setActive ( false ) ; } }
Removes the RevisionListener from the EventManager
Removes the RevisionListener from the EventManager