82310[TASK] Remove TODO to mark PageRenderer final
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Chris Müller +1
- Oliver Klee +1
- Torben Hansen +1
-
Verified V +2 Done
- Benni Mack +2
- Chris Müller +1
- Oliver Klee +1
- Torben Hansen +1
- core-ci +1 CI
Issues 1
Files 1
Review log 1315
-
Simon Schaufelberger uploaded patch set 1 01/04/24, 14:51
-
Simon Schaufelberger commented on patch set 1 01/04/24, 14:53
-
core-ci voted on patch set 1 V -1 01/04/24, 14:57 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/51108
-
Chris Müller commented on patch set 1 01/04/24, 14:57
Marking PageRenderer as final will make mocking that class in unit tests mostly impossible (without hassle). Mocking is useful, for example, when using PageRenderer hooks, where the PageRenderer itself is given as argument to a hook. There is some patchset available somewhere where we had this discussion already. -
Simon Schaufelberger commented on patch set 1 01/04/24, 15:03
Reply
ok but Oliver Hader added this TODO here: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78658 What do you suggest? -
Stefan Bürk commented on patch set 1 CR -1 01/04/24, 15:39
We discussed it somewhere already to leave this class non-final for now as a lot of people needs to mock this in tests. Simple making it final is not a solution or now. So leave it for now or change the todo to 13.0 or 14.0. Making a interface out of it and than a implementation is not quick step anyway. -
Simon Schaufelberger commented on patch set 1 01/04/24, 17:28
Reply
ok then I would just remove the TODO. -
Simon Schaufelberger uploaded patch set 2
CR -1V -101/04/24, 17:30 -
core-ci voted on patch set 2 V +1 01/04/24, 17:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/51114
-
Oliver Klee voted on patch set 2 CR +1 V +1 01/04/24, 18:38
-
Chris Müller voted on patch set 2 CR +1 V +1 01/04/24, 18:57
-
Torben Hansen voted on patch set 2 CR +1 V +1 01/05/24, 10:22
-
Simon Schaufelberger commented on patch set 2 01/05/24, 12:02
Reply
DoneReply
DoneBreaking-102752-MarkPageRendererFinal.rst:32ReplyDone -
Benni Mack voted on patch set 2 CR +2 V +2 01/05/24, 12:03
-
Benni Mack merged patch set 3 01/05/24, 12:04
Breaking-102752-MarkPageRendererFinal.rst:32