69395[BUGFIX] Fix typed property access in ModuleTemplate
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Jochen Roth +1
-
Verified V +2 Done
- Christian Kuhn +2
- Jochen Roth +1
- core-ci +1 CI
Issues 1
Files 2
Review log 1317
-
Oli Bartsch uploaded patch set 1 06/04/21, 09:31
-
core-ci voted on patch set 1 V +1 06/04/21, 09:43 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/12154
-
Oliver Klee voted on patch set 1 CR +1 06/04/21, 13:04
-
Jochen Roth voted on patch set 1 V +1 CR +1 06/08/21, 07:40
-
Christian Kuhn commented on patch set 1 06/08/21, 12:27
The patch is of course correct. But wouldn't it be better to simply set FlashMessageQueue in __construct? The service is injected, so the call from protected getFlashMessageQueue could be done in __construct directly? This does not look like an expensive operation, right? getMessageQueueByIdentifier() does not seem to trigger db calls or something like that, so it would be fine to simply always get the queue? If that is correct, I'd probably change the patch accordingly. What do you think? -
Oli Bartsch commented on patch set 1 06/08/21, 13:36
Reply
Injecting the Queue as a general service doesn't seem right here, since there a some place which use the setter to add individual instances. See e.g. https://github.com/TYPO3/TYPO3.CMS/blob/5a4560909b86a5d1d90e617e0b6726254b9f8f70/typo3/sysext/backend/Classes/ViewHelpers/ModuleLayoutViewHelper.php#L93 -
Oli Bartsch uploaded patch set 2 06/08/21, 14:19
-
Oli Bartsch commented on patch set 2 06/08/21, 14:20
Reply
Done -
Oli Bartsch uploaded patch set 3 06/08/21, 14:24
-
core-ci voted on patch set 2 V -1 06/08/21, 14:27 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/12220
-
core-ci voted on patch set 3 V -1 06/08/21, 14:33 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/12221
-
Oli Bartsch uploaded patch set 4 06/08/21, 14:41
-
core-ci voted on patch set 4 V +1 06/08/21, 14:51 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/12222
-
Christian Kuhn voted on patch set 4 V +1 CR +1 06/08/21, 15:14
-
Jochen Roth voted on patch set 4 V +1 CR +1 06/09/21, 08:41
-
Christian Kuhn voted on patch set 4 V +2 CR +2 06/09/21, 08:45
-
Christian Kuhn merged patch set 5 06/09/21, 08:45