src/Sulu/Component/DocumentManager/Subscriber/Core/InstantiatorSubscriber.php
private function getDocumentFromNode(NodeInterface $node)
    {
        $metadata = $this->metadataFactory->getMetadataForPhpcrNode($node);

        return $this->instantiateFromMetadata($metadata);
    }
private function getDocumentFromNode(NodeInterface $node)
    {
        $metadata = $this->metadataFactory->getMetadataForPhpcrNode($node);

        return $this->instantiateFromMetadata($metadata);
    }
private function getDocumentFromNode ( NodeInterface $ node ) { $ metadata = $ this -> metadataFactory -> getMetadataForPhpcrNode ( $ node ) ; return $ this -> instantiateFromMetadata ( $ metadata ) ; }
Instantiate a new document. The class is determined from
the mixins present in the PHPCR node for legacy reasons.

@param NodeInterface $node

@return object
Instantiate a new document . The class is determined from the mixins present in the PHPCR node for legacy reasons .