Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phase out the controller reflector #27544

Merged
merged 1 commit into from
Jun 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* 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 {

Expand All @@ -53,12 +55,14 @@ public function reflect($object, string $method);
* @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;

Expand All @@ -68,6 +72,8 @@ public function getParameters(): array;
* @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;
}