$shareTypes List of supported share recipients, e.g. 'user', 'group', … * @param array $protocols List of supported protocols and their location, * e.g. ['webdav' => '/remote.php/webdav/'] * @since 28.0.0 * @depecated 33.0.0 (use {@see LocalOCMDiscoveryEvent}) */ public function registerResourceType(string $name, array $shareTypes, array $protocols): void { $resourceType = $this->provider->createNewResourceType(); $resourceType->setName($name) ->setShareTypes($shareTypes) ->setProtocols($protocols); $this->provider->addResourceType($resourceType); } }