summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Bootstrap/RegistrationContext.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-04 15:20:05 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-05 17:03:38 +0200
commit018be662f4df89345b528382ab300269d4a88048 (patch)
tree474a64e9a86f1070f7aeacf947334a1922655d58 /lib/private/AppFramework/Bootstrap/RegistrationContext.php
parent6accf4d857b4233cff698e602041a5126a57e940 (diff)
downloadnextcloud-server-018be662f4df89345b528382ab300269d4a88048.tar.gz
nextcloud-server-018be662f4df89345b528382ab300269d4a88048.zip
Refactor API to match the widget wording
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/AppFramework/Bootstrap/RegistrationContext.php')
-rw-r--r--lib/private/AppFramework/Bootstrap/RegistrationContext.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/AppFramework/Bootstrap/RegistrationContext.php b/lib/private/AppFramework/Bootstrap/RegistrationContext.php
index efcf9175b97..4c37209739e 100644
--- a/lib/private/AppFramework/Bootstrap/RegistrationContext.php
+++ b/lib/private/AppFramework/Bootstrap/RegistrationContext.php
@@ -100,10 +100,10 @@ class RegistrationContext {
);
}
- public function registerDashboardPanel(string $panelClass): void {
+ public function registerDashboardWidget(string $widgetClass): void {
$this->context->registerDashboardPanel(
$this->appId,
- $panelClass
+ $widgetClass
);
}
@@ -282,7 +282,7 @@ class RegistrationContext {
public function delegateDashboardPanelRegistrations(array $apps, IManager $dashboardManager): void {
foreach ($this->dashboardPanels as $panel) {
try {
- $dashboardManager->lazyRegisterPanel($panel['class']);
+ $dashboardManager->lazyRegisterWidget($panel['class']);
} catch (Throwable $e) {
$appId = $panel['appId'];
$this->logger->logException($e, [