Review main Merged

82069[FEATURE] Introduce sortable Doctrine DBAL middleware registration

Stefan Bürk CR +2 V +2 Hard +449 −25 updated 12/08/23, 12:30

Commit message

Doctrine DBAL supports driver middlewares to decorate
drivers as a method to enhance the implementation.

TYPO3 integrated connection middlewares with #100089 and
global driver middlewares with #102496 using a simple
`identifier => class-name` approach. This approach is not
useful for a proper before/after configuration, and array
operation like `unset()` should be omitted at all costs.

This change introduces now a sortable driver middleware
registration, similar to PSR-15 middleware configuration.
The ordering is processed after middleware configurations
from global and connection are combined.

Registered Doctrine DBAL driver middlewares are now also
listed in the `ext:lowlevel` configuration module overview.

The `identifier => class-name` approach is deprecated and
will be promoted to a full exception with v14.

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 3

Files 11