public function propFind(PropFind $propFind, INode $node)
    {
        $propFind->handle('{DAV:}getcontenttype', function () use ($propFind) {
            list(, $fileName) = Uri\split($propFind->getPath());

            return $this->getContentType($fileName);
        });
    }
public function propFind(PropFind $propFind, INode $node)
    {
        $propFind->handle('{DAV:}getcontenttype', function () use ($propFind) {
            list(, $fileName) = Uri\split($propFind->getPath());

            return $this->getContentType($fileName);
        });
    }
public function propFind ( PropFind $ propFind , INode $ node ) { $ propFind -> handle ( '{DAV:}getcontenttype' , function ( ) use ( $ propFind ) { list ( , $ fileName ) = Uri \ split ( $ propFind -> getPath ( ) ) ; return $ this -> getContentType ( $ fileName ) ; } ) ; }
Our PROPFIND handler.

Here we set a contenttype, if the node didn't already have one.

@param PropFind $propFind
@param INode    $node
Our PROPFIND handler .