diff options
author | Joas Schilling <coding@schilljs.com> | 2023-10-12 12:25:54 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-10-13 08:38:19 +0200 |
commit | fc445a2eaa2f93ae7f55b3af8800a87a69480a66 (patch) | |
tree | e946fcdf356f133b7a8bfa23eaa1d57c135c5615 /lib/private/OCM | |
parent | b246d51cbc5105b9c4e85867297ee19f6d2459e5 (diff) | |
download | nextcloud-server-fc445a2eaa2f93ae7f55b3af8800a87a69480a66.tar.gz nextcloud-server-fc445a2eaa2f93ae7f55b3af8800a87a69480a66.zip |
feat(OCM): Add a way for apps to create a new IOCMResource
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/OCM')
-rw-r--r-- | lib/private/OCM/Model/OCMProvider.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/OCM/Model/OCMProvider.php b/lib/private/OCM/Model/OCMProvider.php index 1a8d943f79f..a72dd282dad 100644 --- a/lib/private/OCM/Model/OCMProvider.php +++ b/lib/private/OCM/Model/OCMProvider.php @@ -96,6 +96,14 @@ class OCMProvider implements IOCMProvider { } /** + * create a new resource to later add it with {@see IOCMProvider::addResourceType()} + * @return IOCMResource + */ + public function createNewResourceType(): IOCMResource { + return new OCMResource(); + } + + /** * @param IOCMResource $resource * * @return $this |