Review main Abandoned

73196[WIP][FEATURE] Add configuration object system

crell CR 0 V 0 Nightmare +2367 −484 updated 08/01/22, 18:05

Commit message

Proof of concept for now.

This uses the new Serde library to expose defined
configuration objects to the rest of the system through
DI.  Config objects are loaded from YAML files if
available, with a fallback to read the existing
TYPO3_CONF_VARS array if not found. The config
object is also cached to a PHP file on disk.

It then also updates Mailer and related classes
accordingly, as a demonstration. A few other
config objects are included for demonstration
but not fully converted yet.

It now also includes a prototype of attributes
to define a form based on a class, too.
It's entirely parallel to serialization but
uses the same attribute engine. These could
be used to auto-generate forms based on any
class that is so-attributed.

Used commands:
composer req "symfony/validator" ^5.4
composer req "symfony/validator" ^5.4 \
-d typo3/sysext/core --no-update
composer req "crell/fp" ^0.3.3
composer req "crell/fp" ^0.3.3 -d typo3/sysext/core --no-update
composer req "crell/attributeutils" ^0.6.1
composer req "crell/attributeutils" ^0.6.1 \
-d typo3/sysext/core --no-update
composer req "crell/serde" ^0.3.2
composer req "crell/serde" ^0.3.2 \
-d typo3/sysext/core --no-update
composer req "crell/serde" ^0.3.2 \
-d typo3/sysext/install --no-update

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 42

Show 22 more files