Review main Merged

72199[FEATURE] Allow tagging of data processors

Thomas Löffler CR +2 V +2 Normal +207 −13 updated 10/20/22, 14:21

Commit message

This adds the possibility to tag data processors
with the "data.processor" tag in the service configuration.

Tagged services will automatically be added to the new
DataProcessorRegistry, which enables DI out of the box.
As a side effect, this allows to define an "identifier",
which can be used as an alias in e.g. TypoScript
configurations.

Note: Tagged services are not automatically set public.
This only happens implicit when fetched via the registry.
In case one still uses the FQCN instead of the alias /
identifier, the service must still be set "public: true"
manually.

All core data processors are tagged and defined by an
identifier. A possible migration in TypoScript would
therefore look like:

Default:
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor

New possibility:
10 = database-query

Review

  • Code review CR +2

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

  • Verified V +2

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

Issues 2

Files 7