summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-12 10:45:38 +0200
committerGitHub <noreply@github.com>2022-05-12 10:45:38 +0200
commitfc1db22629e33f3550daab0c737493ad21b3a8a7 (patch)
treebf9e1a08914be9441f6fa30901980bd074d1035c /lib/public
parentbe49f79503a9e187cec43fabeb6f5eed9b06af6c (diff)
parenta392cd70fbdc0d73a4e2ef84340b58dcd711f535 (diff)
downloadnextcloud-server-fc1db22629e33f3550daab0c737493ad21b3a8a7.tar.gz
nextcloud-server-fc1db22629e33f3550daab0c737493ad21b3a8a7.zip
Merge pull request #32339 from nextcloud/appdatafactory-public
Make it possible to get the appdata folder using the public API
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/AppData/IAppDataFactory.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/Files/AppData/IAppDataFactory.php b/lib/public/Files/AppData/IAppDataFactory.php
new file mode 100644
index 00000000000..b689da36b83
--- /dev/null
+++ b/lib/public/Files/AppData/IAppDataFactory.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace OCP\Files\AppData;
+
+use OCP\Files\IAppData;
+
+/**
+ * A factory allows you to get the AppData folder for an application.
+ *
+ * @since 25.0.0
+ */
+interface IAppDataFactory {
+
+ /**
+ * Get the AppData folder for the specified $appId
+ * @param string $appId
+ * @return IAppData
+ * @since 25.0.0
+ */
+ public function get(string $appId): IAppData;
+}