diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-11 16:08:26 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-17 16:36:23 +0200 |
commit | df072471a7739e0bba30bf2d1687d6461354daf1 (patch) | |
tree | 0169170e7b5fb4e280c5c34244d9943b84481eb3 /lib/private/Support | |
parent | 2378012ee01c8eab6438d9c9005253c5b21f5e14 (diff) | |
download | nextcloud-server-df072471a7739e0bba30bf2d1687d6461354daf1.tar.gz nextcloud-server-df072471a7739e0bba30bf2d1687d6461354daf1.zip |
Add extendedSupport to Subscription
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Support')
-rw-r--r-- | lib/private/Support/Subscription/Registry.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Support/Subscription/Registry.php b/lib/private/Support/Subscription/Registry.php index 89439cb8142..c731da4f3b7 100644 --- a/lib/private/Support/Subscription/Registry.php +++ b/lib/private/Support/Subscription/Registry.php @@ -72,4 +72,16 @@ class Registry implements IRegistry { } return false; } + + /** + * Indicates if the subscription has extended support + * + * @since 17.0.0 + */ + public function delegateHasExtendedSupport(): bool { + if ($this->subscription instanceof ISubscription && method_exists($this->subscription, 'hasExtendedSupport')) { + return $this->subscription->hasExtendedSupport(); + } + return false; + } } |