93410[FEATURE] Introduce auto-discovery for EXT:form YAML configurations
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Sven Liebert +1
-
Verified V +2 Done
- Benni Mack +2
- Sven Liebert +1
- core-ci +1 CI
Issues 1
Files 98
- typo3/sysext/core/Documentation/Changelog/14.2/Deprecation-109412-FormYamlConfigurationRegistration.rstnew+93 −0
- typo3/sysext/core/Documentation/Changelog/14.2/Feature-109412-FormYamlAutoDiscovery.rstnew+166 −0
- typo3/sysext/form/Classes/DependencyInjection/FormYamlCollectorConfigurator.php5new+129 −0
- typo3/sysext/form/Classes/Domain/Configuration/PersistenceConfigurationService.php+1 −1
- typo3/sysext/form/Classes/Mvc/Configuration/ConfigurationManager.php+31 −13
- typo3/sysext/form/Classes/Mvc/Configuration/FormYamlCollector.phpnew+69 −0
- typo3/sysext/form/Classes/Mvc/Configuration/FormYamlConfiguration.phpnew+47 −0
- typo3/sysext/form/Classes/Service/RichTextConfigurationService.php+1 −1
- typo3/sysext/form/Classes/Storage/StorageAdapterFactory.php+1 −1
- typo3/sysext/form/Classes/Storage/StorageAdapterInterface.php+1 −1
- typo3/sysext/form/Configuration/Form/Base/Finishers/Closure.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/Confirmation.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/DeleteUploads.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/EmailToReceiver.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/EmailToSender.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/FlashMessage.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/Redirect.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/SaveToDatabase.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/AdvancedPassword.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Checkbox.yamlrenamed+0 −0
Show 78 more files
- typo3/sysext/form/Configuration/Form/Base/FormElements/ContentElement.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/CountrySelect.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Date.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/DatePicker.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Email.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Fieldset.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/FileUpload.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Form.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/GridColumn.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/GridRow.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Hidden.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Honeypot.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/ImageUpload.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/MultiCheckbox.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/MultiSelect.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Number.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Page.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Password.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/RadioButton.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/SingleSelect.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/StaticText.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/SummaryPage.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Telephone.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Text.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Textarea.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Url.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/Alphanumeric.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/Count.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/DateRange.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/DateTime.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/EmailAddress.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/FileSize.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/Float.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/Integer.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/NotEmpty.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/Number.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/NumberRange.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/RegularExpression.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/StringLength.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/Validators/Text.yamlrenamed+0 −0
- typo3/sysext/form/Configuration/Form/Base/config.yamlnew+177 −0
- typo3/sysext/form/Configuration/TypoScript/setup.typoscript+0 −6
- typo3/sysext/form/Configuration/Yaml/FormSetup.yamldeleted+0 −170
- typo3/sysext/form/Configuration/Services.yaml+11 −1
- typo3/sysext/form/Documentation/I/Concepts/Autocomplete/Index.rst+12 −7
- typo3/sysext/form/Documentation/I/Concepts/Autocomplete/_config.yamlnew+17 −0
- typo3/sysext/form/Documentation/I/Concepts/Autocomplete/_setup.typoscriptdeleted+0 −9
- typo3/sysext/form/Documentation/I/Concepts/Configuration/Index.rst2+39 −122
- typo3/sysext/form/Documentation/I/Concepts/Finishers/CustomFinisherImplementations/_codesnippets/_ext_localconf.phpdeleted+0 −19
- typo3/sysext/form/Documentation/I/Concepts/Finishers/CustomFinisherImplementations/Index.rst+9 −12
- typo3/sysext/form/Documentation/I/FAQ/Index.rst+59 −59
- typo3/sysext/form/Documentation/I/HowTos/CustomFormElement/Index.rst+35 −43
- typo3/sysext/form/Documentation/I/HowTos/CustomFormElement/_ext_localconf.phpdeleted+0 −17
- typo3/sysext/form/Tests/Functional/Controller/Fixtures/formSetup.typoscriptdeleted+0 −7
- typo3/sysext/form/Tests/Functional/Controller/FormManagerControllerTest.php+4 −6
- typo3/sysext/form/Tests/Functional/Domain/Runtime/FormRuntimeTest.php+11 −20
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_caching_tests/Configuration/Form/Base/config.yamlnew+6 −0
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_caching_tests/Configuration/Yaml/FormSetup.yamldeleted+0 −3
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_caching_tests/ext_localconf.php+0 −11
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_manager_controller_tests/Configuration/Form/Base/config.yamlnew+9 −0
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_manager_controller_tests/composer.jsonnew+20 −0
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_request_handling_tests/Configuration/Form/Base/config.yamlnew+7 −0
- typo3/sysext/form/Tests/Functional/Fixtures/Extensions/form_request_handling_tests/composer.jsonnew+21 −0
- typo3/sysext/form/Tests/Functional/Mvc/Configuration/ConfigurationManagerTest.php+29 −0
- typo3/sysext/form/Tests/Functional/Mvc/Persistence/Fixtures/Extensions/test_form_persistence/Configuration/Form/Base/config.yamlnew+7 −0
- typo3/sysext/form/Tests/Functional/Mvc/Persistence/Fixtures/formSetup.typoscriptdeleted+0 −7
- typo3/sysext/form/Tests/Functional/Mvc/Persistence/Fixtures/FormSetup.yamldeleted+0 −3
- typo3/sysext/form/Tests/Functional/Mvc/Persistence/FormPersistenceManagerTest.php+0 −6
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/formSetup.typoscriptdeleted+0 −7
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/FormSetup.yamldeleted+0 −3
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/OnePageWithMultipleFormIntegrationsScenario.yaml+1 −1
- typo3/sysext/form/Tests/Functional/RequestHandling/RequestHandlingTest.php+1 −0
- typo3/sysext/form/Tests/Functional/ViewHelpers/RenderFormValueViewHelperTest.php+0 −17
- typo3/sysext/form/Tests/Unit/DependencyInjection/FormYamlCollectorConfiguratorTest.phpnew+332 −0
- typo3/sysext/form/Tests/Unit/Mvc/Configuration/FormYamlCollectorTest.phpnew+128 −0
- typo3/sysext/form/ext_localconf.php+0 −11
- typo3/sysext/styleguide/Configuration/Form/Styleguide/config.yamlnew+8 −0
- typo3/sysext/styleguide/ext_localconf.php+0 −8
Review log 3143
Show 1218 earlier messages
-
Josua Vogel uploaded patch set 1 03/27/26, 20:48
-
Josua Vogel abandoned the change 03/27/26, 20:49
-
Josua Vogel restored the change 03/27/26, 20:51
-
Josua Vogel uploaded patch set 2 03/27/26, 20:51
-
Josua Vogel updated the commit message in patch set 3 03/27/26, 20:52
-
core-ci voted on patch set 2 V -1 03/27/26, 21:12 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98923
-
core-ci voted on patch set 1 V -1 03/27/26, 21:24 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98922
-
core-ci voted on patch set 3 V -1 03/27/26, 21:35 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98924
-
Josua Vogel uploaded patch set 4
V -103/29/26, 14:34 -
core-ci voted on patch set 4 V -1 03/29/26, 15:11 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98986
-
Josua Vogel uploaded patch set 5
V -103/29/26, 16:10 -
core-ci voted on patch set 5 V -1 03/29/26, 16:25 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98987
-
Josua Vogel uploaded patch set 6
V -103/29/26, 16:28 -
core-ci voted on patch set 6 V -1 03/29/26, 16:37 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98988
-
Stefan Bürk commented on patch set 6 03/30/26, 19:27
FYI - Breaking means no-go for v14 anymore. Not looked through it, just read the commit message. Not sure if we really should enforce this as a breaking change even for v15 without something doing that. Not sure if "plugin level" removal is also good, I guessthat have been used wildely. And another question would be: How to override a registration from extension? Or is the way "disable it and register your own" in that case ? TBH not a deeply EXT:form user but I know my company uses this in some projects. -
Benni Mack uploaded patch set 7
V -103/30/26, 19:52 -
Benni Mack updated the commit message in patch set 8 03/30/26, 19:54
-
Benni Mack updated the commit message in patch set 9 03/30/26, 19:55
-
Benni Mack commented on patch set 9 03/30/26, 19:55
Reply
It's not breaking anymore. -
core-ci voted on patch set 8 V -1 03/30/26, 20:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99113
-
core-ci voted on patch set 9 V -1 03/30/26, 20:18 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99114
-
core-ci voted on patch set 7 V -1 03/30/26, 20:29 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99112
-
Josua Vogel uploaded patch set 10
V -103/31/26, 05:31 -
core-ci voted on patch set 10 V +1 03/31/26, 05:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99208
-
Sven Liebert commented on patch set 10 03/31/26, 05:48
Here isn't anything breaking isn't it? -
Josua Vogel updated the commit message in patch set 11
V +103/31/26, 05:49 -
Georg Ringer voted on patch set 10 CR +1 V +1 03/31/26, 05:57
-
Sven Liebert voted on patch set 11 CR +1 V +1 03/31/26, 05:59
-
Josua Vogel commented on patch set 11 03/31/26, 06:02
Reply
To be honest, almost everyone uses Typoscript registration, since it’s the only way to add custom elements or configurations to the Form Framework. However, it’s now merely deprecated. In the long run, the new method is simpler—Typoscript tends to lead to beginner mistakes, which this approach helps avoid. Otherwise, you couldn’t really override much in the past either. You have to define your own YAML file, which is loaded later and overrides the corresponding configurations. The same principle continues to apply here. -
core-ci voted on patch set 11 V +1 03/31/26, 06:10 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99215
-
Stefan Bürk commented on patch set 11 CR -1 03/31/26, 06:17
reviewing ... -
Josua Vogel uploaded patch set 12
CR +1V +103/31/26, 06:47 -
Stefan Bürk commented on patch set 11 CR 0 03/31/26, 06:55
Reply
DoneLeaving one question - technically having more, and TBH cannot make the risk assesment in the short time now if everything is in good shape or possible tackable in the FF phase. Personally I can't give my vote on this but abstain from blocking it in case other have a better feeling and knowledge that this is really ready.Reply
DoneFormYamlCollectorConfigurator.php:62Is there a reason why no `EXT:form/ext_conf_template.txt` exists for this ? Possible because of the array nature ? Not sure what happens if one is added in the future and the configuration syncronization stuff in ExtensionConfiguration - at least if that is used at some point, possible from 3rd party code (extensions) ..... Not to block this for now, we can take care of that in the FF phase. But we should have a look on that again. -
Sven Liebert voted on patch set 12 CR +1 V +1 03/31/26, 06:58
-
core-ci voted on patch set 12 V +1 03/31/26, 06:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99225
-
Benni Mack commented on patch set 12 CR +2 V +2 03/31/26, 07:08
FormYamlCollectorConfigurator.php:62ReplyWill merge now regardless of the comment, due to FF and comment stated it's not blocking -
Benni Mack merged patch set 13 03/31/26, 07:08
-
Benjamin Franzke commented on patch set 13 03/31/26, 07:35
FormYamlCollectorConfigurator.php:60Btw, ext_localconf.php is not loaded by the time when DI compiler passes are executed. Procedure is: * Load system/settings/… * build package manager * build container (or use cached) * load ext_localconf For this reason we generally avoid using any `$GLOBALS['TYPO3_CONF_VARS']` in compiler passes, because this configuration is: * not fully loaded yet * meant not to be cached (a change of EXTCONF will not trigger a DI-rebuild) -
Benjamin Franzke commented on patch set 13 03/31/26, 08:45
Index.rst:100FYI: The removal of this anchors causes CI to fail, because they are referenced in older Feature.rst files: https://git.typo3.org/typo3/CI/cms/-/jobs/5510436#L38 > [2026-03-31T07:33:51.154000+00:00] app.WARNING: Inventory link with key "typo3/cms-form:concepts-configuration-yamlregistration-backend-addtyposcriptsetup" (concepts-configuration-yamlregistration-backend-addtyposcriptsetup) not found. {"rst-file":"Changelog/13.1/Feature-103439-TypoScriptProviderForSitesAndSets","type":"ref","targetReference":"concepts-configuration-yamlregistration-backend-addtyposcriptsetup","value":"YAML registration for the backend via addTypoScriptSetup()","linkType":"std:label","interlinkDomain":"typo3/cms-form"} [] [2026-03-31T07:34:06.495041+00:00] app.WARNING: Inventory link with key "typo3/cms-form:concepts-configuration-yamlregistration-backend-addtyposcriptsetup" (concepts-configuration-yamlregistration-backend-addtyposcriptsetup) not found. {"rst-file":"Changelog/13.1/Feature-103439-TypoScriptProviderForSitesAndSets","type":"ref","targetReference":"concepts-configuration-yamlregistration-backend-addtyposcriptsetup","value":"YAML registration for the backend via addTypoScriptSetup()","linkType":"std:label","interlinkDomain":"typo3/cms-form"} [] [2026-03-31T07:34:06.495131+00:00] app.WARNING: Inventory link with key "typo3/cms-form:concepts-configuration-yamlregistration-backend-addtyposcriptsetup" (concepts-configuration-yamlregistration-backend-addtyposcriptsetup) not found. {"rst-file":"Changelog/13.1/Feature-103439-TypoScriptProviderForSitesAndSets","type":"ref","targetReference":"concepts-configuration-yamlregistration-backend-addtyposcriptsetup","value":"YAML registration for the backend via addTypoScriptSetup()","linkType":"std:label","interlinkDomain":"typo3/cms-form"} [] @garvin@hick.ing we should check why pre-merge did not catch that, while it feels for successive patches in pre-merge now: https://review.typo3.org/c/Packages/TYPO3.CMS/+/93480/1#message-36c33b09ab4b6a9a68ee1ad26c53a000770dd13c -
Benjamin Franzke commented on patch set 13 03/31/26, 09:01
Index.rst:100ReplyResolving here, let's handle in: > 93482: [WIP][TASK] Fix link to EXT:form yaml configuration | https://review.typo3.org/c/Packages/TYPO3.CMS/+/93482 -
Josua Vogel commented on patch set 13 04/23/26, 16:40
FormYamlCollectorConfigurator.php:60Reply UnresolvedThe concern about $GLOBALS['TYPO3_CONF_VARS'] does not apply here. The FormYamlCollectorConfigurator is a Symfony service configurator, not a compiler pass. A service configurator (declared via the configurator: key in Services.yaml) is called at service instantiation time, not at compile time. The Symfony PhpDumper generates PHP code that calls the configurator every time the service is first requested from the compiled container. This happens at runtime, during request processing. The FormYamlCollector service (which uses the configurator) is only instantiated when ConfigurationManager first needs it — which happens during request processing, well after ext_localconf.php has been loaded. At that point, $GLOBALS['TYPO3_CONF_VARS'] is fully populated. So the disabledSets mechanism reading $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['form']['disabledSets'] in the configurator is correct and works as expected. -
Josua Vogel commented on patch set 13 04/23/26, 16:44
FormYamlCollectorConfigurator.php:62Reply UnresolvedCorrect — ext_conf_template.txt only supports flat scalar values, not arrays like disabledSets. If ext_conf_template.txt is added later, disabledSets wouldn't be defined in the template, so the merge (mergeRecursiveWithOverrule) preserves existing values from ext_localconf.php / settings.php.