bridge/doctrine-phpcr-odm/src/NodeTypeRegistrator.php
public function registerNodeTypes(SessionInterface $session)
    {
        $cnd = sprintf(
            '<%s=\'https://github.com/symfony-cmf/content-type\'>',
            $this->encoder->getPrefix(),
            $this->encoder->getUri()
        );

        $nodeTypeManager = $session->getWorkspace()->getNodeTypeManager();
        $nodeTypeManager->registerNodeTypesCnd($cnd, true);
    }
public function registerNodeTypes(SessionInterface $session)
    {
        $cnd = sprintf(
            '<%s=\'https://github.com/symfony-cmf/content-type\'>',
            $this->encoder->getPrefix(),
            $this->encoder->getUri()
        );

        $nodeTypeManager = $session->getWorkspace()->getNodeTypeManager();
        $nodeTypeManager->registerNodeTypesCnd($cnd, true);
    }
public function registerNodeTypes ( SessionInterface $ session ) { $ cnd = sprintf ( '<%s=\'https://github.com/symfony-cmf/content-type\'>' , $ this -> encoder -> getPrefix ( ) , $ this -> encoder -> getUri ( ) ) ; $ nodeTypeManager = $ session -> getWorkspace ( ) -> getNodeTypeManager ( ) ; $ nodeTypeManager -> registerNodeTypesCnd ( $ cnd , true ) ; }
Register the content-type node types with the given PHPCR session.
Register the content - type node types with the given PHPCR session .