Jackalope\Transport\Jackrabbit\Client::buildRegisterNamespaceRequest PHP Method

buildRegisterNamespaceRequest() protected method

You need to repeat all existing node type plus add your new ones
protected buildRegisterNamespaceRequest ( array $mappings )
$mappings array hashmap of prefix => uri for all existing and new namespaces
    protected function buildRegisterNamespaceRequest($mappings)
    {
        $ns = '';
        foreach ($mappings as $prefix => $uri) {
            $ns .= "<dcr:namespace><dcr:prefix>{$prefix}</dcr:prefix><dcr:uri>{$uri}</dcr:uri></dcr:namespace>";
        }
        return '<?xml version="1.0" encoding="UTF-8"?><D:propertyupdate xmlns:D="DAV:"><D:set><D:prop><dcr:namespaces xmlns:dcr="http://www.day.com/jcr/webdav/1.0">' . $ns . '</dcr:namespaces></D:prop></D:set></D:propertyupdate>';
    }