[!!!][TASK] Replace config.persistence.classes typoscript 70/59570/13
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Sun, 27 Jan 2019 18:48:56 +0000 (19:48 +0100)
committerSusanne Moog <look@susi.dev>
Sun, 14 Apr 2019 14:27:46 +0000 (16:27 +0200)
commitae6936dda4fab2604bdf6de40b0b70b41b2423c4
tree780a8bd62467409e786015882aca93f1d8cd8006
parentdaf7c74afa2d3ee90ac3945a912fa577a5704d9b
[!!!][TASK] Replace config.persistence.classes typoscript

This patch removes support for the configuration of
persistence related classes via typoscript. This is done
as typoscript is too variable, i.e. the configuration may
change depending on the day, the hour and whatever
possibility typoscript has when it comes to conditions.

The functionality must not vanish completely, but the
configuration should be immutable and predictable at an
early stage of the runtime.

To achieve this, the configuration has to be added to files
like EXT:Configuration/Extbase/Persistence/Classes.php

This patch is considered breaking as the configuration via
typoscript stops working immediately and the configuration
syntax slightly changed.

The easiest way to migrate to the new syntax is to have a
look at configuration files in core extensions.

Releases: master
Resolves: #87623
Change-Id: Id1ceceafd10ec647507bca8078ebf62fe1b02d2a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59570
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Jörg Bösche <typo3@joergboesche.de>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Susanne Moog <look@susi.dev>
24 files changed:
typo3/sysext/belog/Configuration/Extbase/Persistence/Classes.php [new file with mode: 0644]
typo3/sysext/belog/Configuration/TypoScript/setup.typoscript
typo3/sysext/beuser/Configuration/Extbase/Persistence/Classes.php [new file with mode: 0644]
typo3/sysext/beuser/Configuration/TypoScript/setup.typoscript
typo3/sysext/core/Classes/Cache/Frontend/NullFrontend.php [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Breaking-87623-ReplaceConfigpersistenceclassesTyposcriptConfiguration.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/Extbase/Persistence/Classes.php [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/TypoScript/setup.typoscript
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/extbase/Classes/Persistence/ClassesConfiguration.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/ClassesConfigurationFactory.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/Fixtures/Domain/Model/A.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/Fixtures/Domain/Model/B.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/Fixtures/Domain/Model/C.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
typo3/sysext/extbase/Configuration/Extbase/Persistence/Classes.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/Extbase/Persistence/Classes.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/ext_typoscript_setup.typoscript [deleted file]
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/Configuration/Extbase/Persistence/Classes.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/ext_typoscript_setup.typoscript [deleted file]
typo3/sysext/extbase/Tests/Unit/Persistence/ClassesConfigurationFactoryTest.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Unit/Persistence/ClassesConfigurationTest.php [new file with mode: 0644]
typo3/sysext/extbase/ext_typoscript_setup.typoscript