Review main Ready for review

98082[TASK] Inject PackageManager instead of using makeInstance()

Benni Mack CR 0 V 0 Normal +85 −37 updated 11/26/26, 19:43

Commit message

Several classes built by the container fetched the PackageManager via
GeneralUtility::makeInstance(). They now receive it via dependency
injection:

* SiteTcaConfiguration, LanguagePackService and the impexp
  ImportController get it via their constructors.
* The dashboard ServiceProvider takes it from the container.
* AbstractItemProvider and PageRendererBackendSetupTrait no longer
  create their own SystemResourceIdentifierFactory, but use the
  service. Classes using the trait get the factory injected.

This prepares dropping SingletonInterface from PackageManager, which
needs a change in the unit test bootstrap of the testing framework
first.
Show more Show less

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/82/98082/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/82/98082/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 27

Show 22 more changes Show less

Issues 2

Files 22

Show 2 more files Show less

Review log 12

  1. Benni Mack uploaded patch set 1 11/26/26, 19:35

  2. core-ci voted on patch set 1 V +1 11/26/26, 19:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115609