-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add acceptShare
as an interface
#46099
base: master
Are you sure you want to change the base?
Conversation
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>
* @param IShare $share | ||
* @param string $recipient | ||
* @return IShare The share object | ||
* @since 17.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @since 17.0.0 | |
* @since 30.0.0 |
* | ||
* @since 30.0.0 | ||
*/ | ||
interface IShareProviderSupportsAccept { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also:
interface IShareProviderSupportsAccept { | |
interface IShareProviderSupportsAccept extends IShareProvider { |
but that might only work atm while it's still linear?
@@ -1018,6 +1019,7 @@ public function acceptShare(IShare $share, string $recipientId): IShare { | |||
// TODO FIX ME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for the new interface instead?
Summary
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.5 years after no other provider supports it, so maybe an additional interface would be better like done here?
Ref: #16828 (comment)
Checklist