aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/AppData
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-05-11 16:45:32 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-05-11 23:28:37 +0200
commita392cd70fbdc0d73a4e2ef84340b58dcd711f535 (patch)
tree30abe8b60f563d57f677ab7533159ef5e15ec4c9 /lib/public/Files/AppData
parent5a0b28d603e142051967175f023b698ff7e262db (diff)
downloadnextcloud-server-a392cd70fbdc0d73a4e2ef84340b58dcd711f535.tar.gz
nextcloud-server-a392cd70fbdc0d73a4e2ef84340b58dcd711f535.zip
Make it possible to get the appdata folder using the public API
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/public/Files/AppData')
-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;
+}