73598[TASK] Use composer name from request route
Commit message
Review
-
Code review CR +2 Done
- Benjamin Franzke +2
- Stefan Bürk +1
-
Verified V +2 Done
- Benjamin Franzke +2
- Stefan Bürk +1
- core-ci +1 CI
Issues 3
Files 114
- typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php+2 −2
- typo3/sysext/backend/Classes/Backend/ToolbarItems/HelpToolbarItem.php+2 −2
- typo3/sysext/backend/Classes/Backend/ToolbarItems/LiveSearchToolbarItem.php+1 −1
- typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php+2 −2
- typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php+2 −2
- typo3/sysext/backend/Classes/Backend/ToolbarItems/UserToolbarItem.php+2 −2
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php+1 −1
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php+1 −1
- typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php+1 −1
- typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php+2 −2
- typo3/sysext/backend/Classes/Controller/Page/NewMultiplePagesController.php+1 −1
- typo3/sysext/backend/Classes/Controller/Wizard/ImageManipulationController.php+1 −1
- typo3/sysext/backend/Classes/Controller/AboutController.php+1 −1
- typo3/sysext/backend/Classes/Controller/BackendController.php+3 −3
- typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php+1 −1
- typo3/sysext/backend/Classes/Controller/DummyController.php+1 −1
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php+1 −1
- typo3/sysext/backend/Classes/Controller/HelpController.php+1 −1
- typo3/sysext/backend/Classes/Controller/MfaConfigurationController.php+1 −1
- typo3/sysext/backend/Classes/Controller/MfaController.php+1 −1
Show 94 more files
- typo3/sysext/backend/Classes/Controller/MfaSetupController.php+1 −1
- typo3/sysext/backend/Classes/Controller/NewRecordController.php+1 −1
- typo3/sysext/backend/Classes/Controller/PageLayoutController.php+1 −1
- typo3/sysext/backend/Classes/Controller/ResetPasswordController.php+1 −1
- typo3/sysext/backend/Classes/Controller/ShortcutController.php+1 −1
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php+2 −2
- typo3/sysext/backend/Classes/Template/ModuleTemplateFactory.php+2 −2
- typo3/sysext/backend/Classes/View/Drawing/BackendLayoutRenderer.php+1 −1
- typo3/sysext/backend/Classes/View/BackendViewFactory.php5+54 −36
- typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php+3 −0
- typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php+3 −1
- typo3/sysext/backend/Tests/Functional/Controller/MfaControllerTest.php+3 −1
- typo3/sysext/backend/Tests/Functional/Controller/MfaSetupControllerTest.php+3 −1
- typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php+3 −1
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/Resources/Private/Layouts/FooLayout.htmlnew+2 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/Resources/Private/Partials/FooPartial.htmlnew+1 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/Resources/Private/Templates/Foo.htmlnew+6 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/Resources/Public/Icons/Extension.svgnew+1 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/composer.jsonnew+12 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/ext_emconf.phpnew+22 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Private/Layouts/FooLayout.htmlnew+2 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Private/Partials/FooPartial.htmlnew+1 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Private/Templates/Foo.htmlnew+6 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Public/Icons/Extension.svgnew+1 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/composer.jsonnew+12 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/ext_emconf.phpnew+22 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/Configuration/PageTS/page.tsconfignew+5 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/Resources/Private/Layouts/.gitkeepnew+0 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/Resources/Private/Partials/.gitkeepnew+0 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/Resources/Private/Templates/.gitkeepnew+0 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/Resources/Public/Icons/Extension.svgnew+1 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/composer.jsonnew+12 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_c/ext_emconf.phpnew+22 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/BackendViewFactoryTestPages.csvnew+3 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/BackendViewFactoryTestPagesWithFallback.csvnew+4 −0
- typo3/sysext/backend/Tests/Functional/View/BackendViewFactoryTest.php2new+182 −0
- typo3/sysext/belog/Classes/Controller/BackendLogController.php+1 −1
- typo3/sysext/beuser/Classes/Controller/BackendUserController.php+1 −1
- typo3/sysext/beuser/Classes/Controller/PermissionController.php+2 −2
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-96812-NoFrontendTypoScriptBasedTemplateOverridesInTheBackend.rst+4 −2
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-96730-SimplifiedExtbackendModuleTemplateAPI.rst3+1 −2
- typo3/sysext/dashboard/Classes/Controller/DashboardController.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/BarChartWidget.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/CtaWidget.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/DoughnutChartWidget.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/ListWidget.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/NumberWithIconWidget.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/RssWidget.php+1 −1
- typo3/sysext/dashboard/Classes/Widgets/T3GeneralInformationWidget.php+1 −1
- typo3/sysext/dashboard/Documentation/Developer/WidgetImplementation.rst+1 −1
- typo3/sysext/extensionmanager/Classes/Controller/AbstractController.php+1 −1
- typo3/sysext/filelist/Classes/Controller/File/CreateFolderController.php+1 −1
- typo3/sysext/filelist/Classes/Controller/File/EditFileController.php+1 −1
- typo3/sysext/filelist/Classes/Controller/File/FileUploadController.php+1 −1
- typo3/sysext/filelist/Classes/Controller/File/RenameFileController.php+1 −1
- typo3/sysext/filelist/Classes/Controller/File/ReplaceFileController.php+1 −1
- typo3/sysext/filelist/Classes/Controller/FileListController.php+1 −1
- typo3/sysext/form/Classes/Controller/FormEditorController.php+1 −1
- typo3/sysext/form/Classes/Controller/FormManagerController.php+1 −1
- typo3/sysext/impexp/Classes/Controller/ExportController.php+1 −1
- typo3/sysext/impexp/Classes/Controller/ImportController.php+1 −1
- typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php+1 −1
- typo3/sysext/info/Classes/Controller/InfoModuleController.php+1 −1
- typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php+1 −1
- typo3/sysext/install/Classes/Controller/BackendModuleController.php+1 −1
- typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php+1 −1
- typo3/sysext/lowlevel/Classes/Controller/ConfigurationController.php+1 −1
- typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php+1 −1
- typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php+2 −2
- typo3/sysext/recordlist/Classes/Browser/AbstractElementBrowser.php+1 −1
- typo3/sysext/recordlist/Classes/Controller/AbstractLinkBrowserController.php+1 −1
- typo3/sysext/recordlist/Classes/Controller/RecordDownloadController.php+1 −1
- typo3/sysext/recordlist/Classes/Controller/RecordListController.php+1 −1
- typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php+1 −1
- typo3/sysext/recordlist/Classes/View/RecordSearchBoxComponent.php+1 −1
- typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php+1 −1
- typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php+1 −1
- typo3/sysext/redirects/Classes/Controller/ManagementController.php+1 −1
- typo3/sysext/redirects/Classes/Report/Status/RedirectStatus.php+1 −1
- typo3/sysext/reports/Classes/Controller/ReportController.php+2 −2
- typo3/sysext/reports/Classes/Report/Status/Status.php+1 −1
- typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php+1 −1
- typo3/sysext/setup/Classes/Controller/SetupModuleController.php+1 −1
- typo3/sysext/sys_note/Classes/Renderer/NoteRenderer.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TemplateAnalyzerController.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TyposcriptConstantEditorController.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptObjectBrowserController.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationController.php+1 −1
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php+2 −2
- typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php+1 −1
- typo3/sysext/workspaces/Classes/Backend/ToolbarItems/WorkspaceSelectorToolbarItem.php+2 −2
- typo3/sysext/workspaces/Classes/Controller/Remote/ActionHandler.php2+1 −1
- typo3/sysext/workspaces/Classes/Controller/PreviewController.php+1 −1
- typo3/sysext/workspaces/Classes/Controller/ReviewController.php+1 −1
Review log 2434
Show 59 earlier messages
-
Christian Kuhn uploaded patch set 1 02/18/22, 07:24
-
core-ci voted on patch set 1 V -1 02/18/22, 07:38 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23853
-
Christian Kuhn uploaded patch set 2 02/18/22, 08:30
-
core-ci voted on patch set 2 V -1 02/18/22, 08:49 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23862
-
Christian Kuhn uploaded patch set 3 02/18/22, 10:09
-
core-ci voted on patch set 3 V -1 02/18/22, 10:22 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23864
-
Christian Kuhn uploaded patch set 4 02/18/22, 11:56
-
core-ci voted on patch set 4 V +1 02/18/22, 12:08 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23873
-
Oli Bartsch commented on patch set 4 02/18/22, 14:04
Feature-96730-SimplifiedExtbackendModuleTemplateAPI.rst:46I think we should still mention the second parameter and describe what it is used for (maybe just copy parts of the comment from the factory). This parameter is really important for extension authors, since they need it on extending core while rendering templates from their package.ActionHandler.php:773Wow, this is an "interesting" hack.
-
Christian Kuhn uploaded patch set 5 02/18/22, 14:48
-
core-ci voted on patch set 5 V -1 02/18/22, 14:57 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23877
-
Christian Kuhn commented on patch set 5 02/18/22, 15:06
BackendViewFactory.php:45ReplyGood point. I was unsure here when I first created this API. Working with it, I came to the conclusion that allowing multiple entries here is more flexible: * Maybe sometimes extensions want to 'look-ahead' for other third party extensions and may include possible overrides of those by default. * The basic "get composer name from route, plus a single name an extension wants" is relatively hard restricted. There is no reason to not allow "more" here. * It may be eventually needed when an extension overrides an extension. The above points are not "strong" and we could probably ditch it. OTOH, it shouldn't harm to just make it an array here and handle it. I also just created functional tests that verify this should work. Is that ok with you? I'd like to avoid an API change here in the future in case we figure it's useful for another reason, so I went with an array now. -> imho resolved comment, please insist if you don't agree.Feature-96730-SimplifiedExtbackendModuleTemplateAPI.rst:46ReplymoduleTemplateFactory does not have that option with the patch anymore: I removed it. The only valid usage of "additional" paths is when using BackendViewFactory, and I now documented this in the according .rst in a better way. For module templates: iirc, there is no reason to allow overriding this in extensions - extensions would have to claim an own route for modules anyway, or register as TsConfig override if they want to just override templates. So the default template paths can *always* be fetched from the route. That's my reason to not allow it for ModuleTemplateFactory, *but* to allow it for BackendViewFactory. I *think* that is fine and I can't think of scenarios where this isn't sufficient. *If* we find additional scenarios where this second argument is a valid use case on ModuleTemplate, too, we could easily add it later, and then document it as well. -> imho resolved comment. -
Christian Kuhn uploaded patch set 6 02/18/22, 15:08
-
Christian Kuhn commented on patch set 6 02/18/22, 15:14
ActionHandler.php:773Replyyes. this needs a refactoring of course. it's ugly. -
core-ci voted on patch set 6 V -1 02/18/22, 15:19 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23878
-
Christian Kuhn commented on patch set 6 CR -1 02/18/22, 15:22
BackendViewFactory.php:66*this* is actually a detail of ModuleTemplateFactory and should be done there. -
Christian Kuhn commented on patch set 6 02/18/22, 15:28
BackendViewFactory.php:66Replyforget this comment. it's totally legit this default path is added since it simplifies accessing default templates for instance for toolbars as well. after all, BackendViewFactory is part of ext:backend. -
Oli Bartsch commented on patch set 6 CR +1 02/18/22, 15:28
BackendViewFactory.php:45ReplyACKFeature-96730-SimplifiedExtbackendModuleTemplateAPI.rst:46ReplySorry, my fault. Thought this example is about the BackendViewFactory. -
Christian Kuhn uploaded patch set 7 02/18/22, 15:29
-
core-ci voted on patch set 7 V +1 02/18/22, 15:38 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23880
-
Benni Mack voted on patch set 7 CR +1 02/18/22, 15:46
-
Christian Kuhn uploaded patch set 8 02/18/22, 15:57
-
core-ci voted on patch set 8 V +1 02/18/22, 16:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23883
-
Stefan Bürk voted on patch set 8 CR +1 02/18/22, 16:13
-
Christian Kuhn uploaded patch set 9 02/18/22, 18:46
-
core-ci voted on patch set 9 V +1 02/18/22, 19:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23892
-
Benni Mack voted on patch set 9 CR +1 02/19/22, 21:14
-
Benjamin Franzke voted on patch set 9 V +1 CR +1 02/19/22, 22:06
-
Stefan Bürk commented on patch set 9 CR -1 02/19/22, 23:03
on itBackendViewFactoryTest.php:106I think we should add a test showcasing / testing that fallback/chain picking of files (layout/template/partial) for registered package before is used. For ex. - package b: provides "Layout/FooLayout" and all other files - package a: proviedes all overriden template files, except "Layout/FooLayout" then the result should be: ``` Foo template from extension test_templates_a Foo layout from extension test_templates_b Foo partial from extension test_templates_a ``` This PageTS override solved the usage of the extbase/frontend override chain, but kept this logic. So having a small fallback test should be here, so we ensure this will not break in the future. Same for the PageTS override configuration. -
Stefan Bürk uploaded patch set 10 02/19/22, 23:21
-
core-ci voted on patch set 10 V +1 02/19/22, 23:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/23914
-
Stefan Bürk commented on patch set 10 V +1 CR +1 02/19/22, 23:33
BackendViewFactoryTest.php:106ReplyDone -
Benjamin Franzke voted on patch set 10 V +2 CR +2 02/20/22, 00:45
-
Benjamin Franzke merged patch set 11 02/20/22, 00:45
BackendViewFactory.php:45