From 7d1748d2e54b29b11299acff0c1e47e296a18d9f Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Thu, 26 May 2022 11:36:44 -0300 Subject: [PATCH] Just move some code --- lib/AppInfo/Application.php | 5 +++-- .../DashboardWidget.php => Dashboard/NotesWidget.php} | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) rename lib/{AppInfo/DashboardWidget.php => Dashboard/NotesWidget.php} (92%) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 7a2f8bd..a525ad9 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -33,8 +33,9 @@ use OCP\IL10N; use OCP\IURLGenerator; use OCP\IServerContainer; -use OCA\QuickNotes\Search\NoteSearchProvider; +use OCA\QuickNotes\Dashboard\NotesWidget; use OCA\QuickNotes\Listeners\BeforeTemplateRenderedListener; +use OCA\QuickNotes\Search\NoteSearchProvider; class Application extends App implements IBootstrap { @@ -51,7 +52,7 @@ class Application extends App implements IBootstrap { public function register(IRegistrationContext $context): void { $context->registerSearchProvider(NoteSearchProvider::class); $context->registerCapability(Capabilities::class); - $context->registerDashboardWidget(DashboardWidget::class); + $context->registerDashboardWidget(NotesWidget::class); $context->registerEventListener( BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class diff --git a/lib/AppInfo/DashboardWidget.php b/lib/Dashboard/NotesWidget.php similarity index 92% rename from lib/AppInfo/DashboardWidget.php rename to lib/Dashboard/NotesWidget.php index 1b57578..b253e6a 100644 --- a/lib/AppInfo/DashboardWidget.php +++ b/lib/Dashboard/NotesWidget.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace OCA\QuickNotes\AppInfo; +namespace OCA\QuickNotes\Dashboard; use OCP\Dashboard\IWidget; use OCP\IL10N; use OCP\IURLGenerator; -class DashboardWidget implements IWidget { +class NotesWidget implements IWidget { private IURLGenerator $url; private IL10N $l10n;