Jackalope\Transport\Jackrabbit\Client::unregisterNamespace PHP Méthode

unregisterNamespace() public méthode

{@inheritDoc}
public unregisterNamespace ( $prefix )
    public function unregisterNamespace($prefix)
    {
        throw new UnsupportedRepositoryOperationException('Unregistering namespace not supported by jackrabbit backend');
        /*
         * TODO: could look a bit like the following if the backend would support it
        $request = $this->getRequest(Request::PROPPATCH, $this->workspaceUri);
        // seems jackrabbit always expects full list of namespaces
        $namespaces = $this->getNamespaces();
        unset($namespaces[$prefix]);
        $request->setBody($this->buildRegisterNamespaceRequest($namespaces));
        $request->execute();
        */
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function unregisterNamespace($prefix)
 {
     $this->transport->unregisterNamespace($prefix);
 }