summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-17 18:21:19 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-17 18:21:19 +0200
commite49f1e4319384b3ea138c2ef8169accb9b900321 (patch)
treee50f6f5e6bdbccc68fa7e2bb108a5ab81315a5cc /lib
parentb73f40eabbfb3e7941b5628b7243b58211e07d58 (diff)
downloadnextcloud-server-e49f1e4319384b3ea138c2ef8169accb9b900321.tar.gz
nextcloud-server-e49f1e4319384b3ea138c2ef8169accb9b900321.zip
Phase out the controller reflector
1) PHP8 attributes will soon replace phpdoc annotations 2) Most of the class was never meant to be used by an app but internally Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/AppFramework/Utility/IControllerMethodReflector.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Utility/IControllerMethodReflector.php b/lib/public/AppFramework/Utility/IControllerMethodReflector.php
index ef51be0688c..fbeb14b1a35 100644
--- a/lib/public/AppFramework/Utility/IControllerMethodReflector.php
+++ b/lib/public/AppFramework/Utility/IControllerMethodReflector.php
@@ -33,6 +33,8 @@ namespace OCP\AppFramework\Utility;
* Reads and parses annotations from doc comments
*
* @since 8.0.0
+ * @deprecated 22.0.0 will be obsolete with native attributes in PHP8
+ * @see https://help.nextcloud.com/t/how-should-we-use-php8-attributes/104278
*/
interface IControllerMethodReflector {
@@ -53,12 +55,14 @@ interface IControllerMethodReflector {
* @return string|null type in the type parameters (@param int $something)
* would return int or null if not existing
* @since 8.0.0
+ * @deprecated 22.0.0 this method is only used internally
*/
public function getType(string $parameter);
/**
* @return array the arguments of the method with key => default value
* @since 8.0.0
+ * @deprecated 22.0.0 this method is only used internally
*/
public function getParameters(): array;
@@ -68,6 +72,8 @@ interface IControllerMethodReflector {
* @param string $name the name of the annotation
* @return bool true if the annotation is found
* @since 8.0.0
+ * @deprecated 22.0.0 will be obsolete with native attributes in PHP8
+ * @see https://help.nextcloud.com/t/how-should-we-use-php8-attributes/104278
*/
public function hasAnnotation(string $name): bool;
}