Issue Task Resolved

#110633Inject ConnectionPool into ReactionRepository

Wouter Wolters 09/04/26, 19:53 updated 09/07/26, 06:35

Description

ReactionRepository currently creates ConnectionPool through
GeneralUtility::makeInstance() whenever it needs a query builder.

As the repository is already instantiated through dependency injection in
production, ConnectionPool can be provided through constructor injection.
This makes the dependency explicit and removes the service-locator call.

Update the functional tests to resolve ReactionRepository from the TYPO3
dependency injection container instead of instantiating it directly.

This is an internal refactoring without behavioral changes. The existing
repository and reaction functional tests cover the affected functionality.

Reviews 1

History 12

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-07T06:35:09+00:00" > 09/07/26, 06:35 </span>

    Applied in changeset commit:b0ea72e2c0bd4af1d340ce2a602e763abcc35aa6.