Review main Abandoned

65087[FEATURE] Introduce ConfigurationProcessor

Nikita Hovratov CR 0 V 0 Nightmare +5887 −30 updated 11/04/21, 16:42

Commit message

The ConfigurationProcessor enables to process and validate user-defined
TypoScript data in respect of predefined configuration structures.
The configuration structure is defined in classes implementing the
ConfigurationInterface. It is possible to define types, default
values and other options which can be found in the documentation. The
processor validates the user input based on this structure and throws an
exception if it fails.

As configuration was not validated at all before, this might be
breaking in setups with (serious) misconfigurations. Therefore a feature
toggle is provided to allow smooth migrations from lower TYPO3 versions.

Benefits are a stricter user input validation and an overview over all
the possible configuration in the code. Also there are less checks for
existence of values, less php notices and less initialization steps for
options in the executing code.

As a first real world example the HMENU configuration is processed.
Other configuration will follow.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 34

Show 14 more files