src/Sulu/Component/DocumentManager/Subscriber/Core/RegistratorSubscriber.php
private function handleRegister(AbstractMappingEvent $event)
    {
        $node = $event->getNode();
        $locale = $event->getLocale();

        if (!$this->documentRegistry->hasNode($node, $locale)) {
            $this->documentRegistry->registerDocument($event->getDocument(), $node, $locale);
        }
    }
private function handleRegister(AbstractMappingEvent $event)
    {
        $node = $event->getNode();
        $locale = $event->getLocale();

        if (!$this->documentRegistry->hasNode($node, $locale)) {
            $this->documentRegistry->registerDocument($event->getDocument(), $node, $locale);
        }
    }
private function handleRegister ( AbstractMappingEvent $ event ) { $ node = $ event -> getNode ( ) ; $ locale = $ event -> getLocale ( ) ; if ( ! $ this -> documentRegistry -> hasNode ( $ node , $ locale ) ) { $ this -> documentRegistry -> registerDocument ( $ event -> getDocument ( ) , $ node , $ locale ) ; } }
Register the document.

@param AbstractMappingEvent $event
Register the document .