mirror of
https://github.com/nextcloud/server.git
synced 2024-11-14 12:26:49 +00:00
3d136e4466
It was commented out because at that time no other share provider supported the `acceptShare` method. Today it is the same no other provider supports it, but we should make it discoverable by adding it to the public API as an additional interface. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
28 lines
644 B
PHP
28 lines
644 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCP\Share;
|
|
|
|
/**
|
|
* Interface IShareProviderSupportsAccept
|
|
*
|
|
* This interface allows to define IShareProvider that can handle the `acceptShare` method,
|
|
* which is available since Nextcloud 17.
|
|
*
|
|
* @since 30.0.0
|
|
*/
|
|
interface IShareProviderSupportsAccept extends IShareProvider {
|
|
/**
|
|
* Accept a share.
|
|
*
|
|
* @param IShare $share
|
|
* @param string $recipient
|
|
* @return IShare The share object
|
|
* @since 30.0.0
|
|
*/
|
|
public function acceptShare(IShare $share, string $recipient): IShare;
|
|
}
|