public function getNamespaces()
    {
        $result = [];
        foreach ($this->registry[NamespaceExtension::class] as $extension) {
            foreach ($extension->getNamespaces() as $prefix => $namespace) {
                $result[$prefix] = $namespace;
            }
        }

        return $result;
    }
public function getNamespaces()
    {
        $result = [];
        foreach ($this->registry[NamespaceExtension::class] as $extension) {
            foreach ($extension->getNamespaces() as $prefix => $namespace) {
                $result[$prefix] = $namespace;
            }
        }

        return $result;
    }
public function getNamespaces ( ) { $ result = [ ] ; foreach ( $ this -> registry [ NamespaceExtension :: class ] as $ extension ) { foreach ( $ extension -> getNamespaces ( ) as $ prefix => $ namespace ) { $ result [ $ prefix ] = $ namespace ; } } return $ result ; }
Return additional XML namespaces.

@return string[] prefix => namespace.

@since 1.0
Return additional XML namespaces .