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;