src/Sulu/Component/Content/Document/Subscriber/Compat/ContentMapperSubscriber.php
public function handleFlush(FlushEvent $event)
    {
        foreach ($this->persistEvents as $persistEvent) {
            $document = $persistEvent->getDocument();
            $structure = $this->documentToStructure($document);

            $event = new ContentNodeEvent($this->documentInspector->getNode($document), $structure);
            $this->eventDispatcher->dispatch(ContentEvents::NODE_POST_SAVE, $event);
        }

        $this->persistEvents = [];
    }
public function handleFlush(FlushEvent $event)
    {
        foreach ($this->persistEvents as $persistEvent) {
            $document = $persistEvent->getDocument();
            $structure = $this->documentToStructure($document);

            $event = new ContentNodeEvent($this->documentInspector->getNode($document), $structure);
            $this->eventDispatcher->dispatch(ContentEvents::NODE_POST_SAVE, $event);
        }

        $this->persistEvents = [];
    }
public function handleFlush ( FlushEvent $ event ) { foreach ( $ this -> persistEvents as $ persistEvent ) { $ document = $ persistEvent -> getDocument ( ) ; $ structure = $ this -> documentToStructure ( $ document ) ; $ event = new ContentNodeEvent ( $ this -> documentInspector -> getNode ( $ document ) , $ structure ) ; $ this -> eventDispatcher -> dispatch ( ContentEvents :: NODE_POST_SAVE , $ event ) ; } $ this -> persistEvents = [ ] ; }
Dispatches the deprecated post save event for every persisted document.

@param FlushEvent $event
Dispatches the deprecated post save event for every persisted document .