Skip to content

Commit

Permalink
[BUGFIX] do not register optional widgets anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichmathes committed Jul 3, 2024
1 parent 613e3d6 commit 86b1c2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
]));

if (class_exists(BrokenLinkRepository::class)) {
$services->set(null, BrokenLinksWidget::class)
$services->set(BrokenLinksWidget::class)
->tag('dashboard.widget', array_merge($commonTags, [
'title' => $languageFilePath . ':widgets.brokenLinks.title',
'description' => $languageFilePath . ':widgets.brokenLinks.description',
Expand All @@ -78,15 +78,15 @@
}

if (class_exists(RedirectRepository::class)) {
$services->set(null, LatestRedirectsWidget::class)
$services->set(LatestRedirectsWidget::class)
->tag('dashboard.widget', array_merge($commonTags, [
'title' => $languageFilePath . ':widgets.latestRedirects.title',
'description' => $languageFilePath . ':widgets.latestRedirects.description',
]));
}

if (class_exists(AdministrationController::class)) {
$services->set(null, IndexedSearchStatisticWidget::class)
$services->set(IndexedSearchStatisticWidget::class)
->tag('dashboard.widget', array_merge($commonTags, [
'title' => $languageFilePath . ':widgets.indexedSearchStatistics.title',
'description' => $languageFilePath . ':widgets.indexedSearchStatistics.description',
Expand Down

0 comments on commit 86b1c2a

Please sign in to comment.