Skip to content

Commit 504dc51

Browse files
committed
chore: Un-deprecate IControllerMethodReflector as it’s now useful for attributes as well
It should be extended later to add methods to get attributes from reflection, and maybe a getter to the reflectionMethod object to avoid middlewares building their own. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent d68face commit 504dc51

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

lib/public/AppFramework/Utility/IControllerMethodReflector.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,13 @@
1111
/**
1212
* Interface ControllerMethodReflector
1313
*
14-
* Reads and parses annotations from doc comments
14+
* You can inject this interface in your Middleware, and it will be prefilled with information related to the called controller method
15+
*
16+
* Reads and parses annotations from doc comments (deprecated) and PHP attributes
1517
*
1618
* @since 8.0.0
17-
* @deprecated 22.0.0 will be obsolete with native attributes in PHP8
18-
* @see https://help.nextcloud.com/t/how-should-we-use-php8-attributes/104278
1919
*/
2020
interface IControllerMethodReflector {
21-
/**
22-
* @param object $object an object or classname
23-
* @param string $method the method which we want to inspect
24-
* @return void
25-
* @since 8.0.0
26-
* @deprecated 17.0.0 Reflect should not be called multiple times and only be used internally. This will be removed in Nextcloud 18
27-
*/
28-
public function reflect($object, string $method);
29-
3021
/**
3122
* Inspects the PHPDoc parameters for types
3223
*

0 commit comments

Comments
 (0)