[TASK] Clean up DefaultDataProvider
Backend layout DefaultDataProvider receives some love: * Use DI and declare public:true since single backend layout data providers are created using GU::makeInstance(). * Relocate @internal BackendLayoutView::getDefaultColumnLayout() to a private constant of DefaultDataProvider. * Annotate DefaultDataProvider @internal since it is an interface implementing leaf class that should not be extended but exchanged using existing API. * Declare DefaultDataProvider readonly since it is now a stateless service. * Inline tableName property (a de facto constant) that is already hard coded at other places. * Avoid a silent catch that would trigger an exception at another place and add a @todo hinting about an indirect ext:backend cross dependency to ext:frontend. Resolves: #105255 Releases: main Change-Id: I0b1fc42c6e802198eae6d0f1089679b28f7feac4 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86536 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
Please register or sign in to comment