summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-06-07 11:34:40 +0200
committerprovokateurin <kate@provokateurin.de>2024-07-01 14:41:20 +0200
commit5aefdc399eb17a86f3c2b59713ca6448479f99fd (patch)
tree2da8269d8669db9ee05c677a0d8c59e1866994ce /lib/public
parentbeececf66068f57c416225efcde9b44ce5c2e835 (diff)
downloadnextcloud-server-5aefdc399eb17a86f3c2b59713ca6448479f99fd.tar.gz
nextcloud-server-5aefdc399eb17a86f3c2b59713ca6448479f99fd.zip
feat(AppFramework): Add ExAppRequired attribute
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/Attribute/ExAppRequired.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/Attribute/ExAppRequired.php b/lib/public/AppFramework/Http/Attribute/ExAppRequired.php
new file mode 100644
index 00000000000..eb18da8027c
--- /dev/null
+++ b/lib/public/AppFramework/Http/Attribute/ExAppRequired.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCP\AppFramework\Http\Attribute;
+
+use Attribute;
+
+/**
+ * Attribute for controller methods that can only be accessed by ExApps
+ *
+ * @since 30.0.0
+ */
+#[Attribute]
+class ExAppRequired {
+}