diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-10-25 22:20:19 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2021-10-25 22:20:19 +0000 |
commit | 9f8eae3f50d61e2bbe849ce2e9a15a6567a65706 (patch) | |
tree | c59dd5c84d7b168458dd6ba9df3bd80eea2c4752 /lib/private/AppFramework | |
parent | 9177afe8ab6d81fc719775c1b85643fcf28097b5 (diff) | |
download | nextcloud-server-9f8eae3f50d61e2bbe849ce2e9a15a6567a65706.tar.gz nextcloud-server-9f8eae3f50d61e2bbe849ce2e9a15a6567a65706.zip |
Use more explicit naming for profile link action
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Bootstrap/RegistrationContext.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/AppFramework/Bootstrap/RegistrationContext.php b/lib/private/AppFramework/Bootstrap/RegistrationContext.php index 256d3e2346b..6a9073b576b 100644 --- a/lib/private/AppFramework/Bootstrap/RegistrationContext.php +++ b/lib/private/AppFramework/Bootstrap/RegistrationContext.php @@ -63,7 +63,7 @@ class RegistrationContext { private $dashboardPanels = []; /** @var ServiceRegistration<ILinkAction>[] */ - private $profileActions = []; + private $profileLinkActions = []; /** @var ServiceFactoryRegistration[] */ private $services = []; @@ -253,8 +253,8 @@ class RegistrationContext { ); } - public function registerProfileAction(string $actionClass): void { - $this->context->registerProfileAction( + public function registerProfileLinkAction(string $actionClass): void { + $this->context->registerProfileLinkAction( $this->appId, $actionClass ); @@ -343,10 +343,10 @@ class RegistrationContext { } /** - * @psalm-param class-string<ILinkAction> $capability + * @psalm-param class-string<ILinkAction> $actionClass */ - public function registerProfileAction(string $appId, string $actionClass): void { - $this->profileActions[] = new ServiceRegistration($appId, $actionClass); + public function registerProfileLinkAction(string $appId, string $actionClass): void { + $this->profileLinkActions[] = new ServiceRegistration($appId, $actionClass); } /** @@ -597,7 +597,7 @@ class RegistrationContext { /** * @return ServiceRegistration<ILinkAction>[] */ - public function getProfileActions(): array { - return $this->profileActions; + public function getProfileLinkActions(): array { + return $this->profileLinkActions; } } |