Review main Merged

82070[FEATURE] Introduce driver middleware `UsableForConnectionInterface`

Stefan Bürk CR +2 V +2 Hard +269 −16 updated 01/08/24, 12:42

Commit message

TYPO3 integrated the Doctrine DBAL Driver Middleware concept for
connection (#100089) and all connections (#102496) along with a
enhanced configuration ability (#102586).

This change adds a specific driver middleware interface to TYPO3,
which can be used to determine if a registered driver middleware
can be used for a specific connection.

`\TYPO3\CMS\Core\Database\Middleware\UsableForConnectionInterface`
requires the implementation of following method to a custom driver
middleware implementation if used:

  public function canBeUsedForConnection(
    string $identifier,
    array $connectionParams
  ): bool { ... }

This allows extension authors to provide driver middlewares in a
generic way, but ensure it is only taken into account if further
requirements are met.

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 4

Files 5