nextcloud/apps/dav/lib/upload/rootcollection.php

24 lines
341 B
PHP

<?php
namespace OCA\DAV\Upload;
use Sabre\DAVACL\AbstractPrincipalCollection;
class RootCollection extends AbstractPrincipalCollection {
/**
* @inheritdoc
*/
function getChildForPrincipal(array $principalInfo) {
return new UploadHome($principalInfo);
}
/**
* @inheritdoc
*/
function getName() {
return 'uploads';
}
}