From 6c4d73f55e6b66e2bbbb5ef3c62142d76a141de5 Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Sun, 23 Feb 2020 04:09:21 +0100
Subject: [PATCH] [TASK] Unify dashboard widget registration

All widgets should be registered the same way to
increase consistency in the core file. The second
registration variant is documented in the corresponding
rst file anyway.

Resolves: #90502
Releases: master
Change-Id: I3e12890cecb130f4ea6815e01501691c5081735b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63387
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
---
 typo3/sysext/dashboard/Configuration/Services.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/dashboard/Configuration/Services.yaml b/typo3/sysext/dashboard/Configuration/Services.yaml
index c736f388e80a..078c690555c5 100644
--- a/typo3/sysext/dashboard/Configuration/Services.yaml
+++ b/typo3/sysext/dashboard/Configuration/Services.yaml
@@ -58,9 +58,9 @@ services:
         identifier: typeOfUsers
         widgetGroups: 'systemInfo'
 
-  t3news:
-    class: TYPO3\CMS\Dashboard\Widgets\T3NewsWidget
+  TYPO3\CMS\Dashboard\Widgets\T3NewsWidget:
     arguments: ['t3news']
     tags:
       - name: dashboard.widget
+        identifier: t3news
         widgetGroups: 'typo3'
-- 
GitLab