Review main Merged

93716[FEATURE] Improve `providesPackages` handling in classic mode

Helmut Hummel CR +2 V +2 Hard +170 −84 updated 05/04/26, 19:06

Commit message

Until now, TYPO3 classic mode required extensions to list every
non-extension package from the `require` section of `composer.json`
in `providesPackages`, even if the package was already shipped by
TYPO3 or provided by another extension.

This change improves package detection and loading:

* Packages already provided by TYPO3 are recognized automatically.
* Packages provided by other loaded extensions are recognized automatically.
* Provided packages can be associated with a relative path to a Composer
  vendor directory whose `autoload.php` will be included early.

This reduces maintenance overhead for extension authors and establishes
a standard way to ship and bootstrap third-party Composer libraries in
TYPO3 classic mode.

For automatic inclusion to work, the configured path must point to a
vendor directory with a Composer-generated `autoload.php`.

In addition, versions derived from `composer.json` now keep the exact
pretty version and no longer trim trailing `.0` parts.

composer req "typo3/class-alias-loader:^2.0"
composer req "typo3/class-alias-loader:^2.0" \
   -d typo3/sysext/core/ --no-update

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
    • Georg Ringer +1
    • Stefan Bürk +1
    • Benni Mack +1
  • Verified V +2 Done
    • Christian Kuhn +2
    • Georg Ringer +1
    • Stefan Bürk +1
    • Benni Mack +1
    • core-ci +1 CI

Issues 1

Files 12

Review log 2031

Show 46 earlier messages
  1. Helmut Hummel uploaded patch set 1 04/17/26, 13:13

  2. Helmut Hummel uploaded patch set 2 04/17/26, 13:18

  3. Helmut Hummel marked it work in progress 04/17/26, 13:19

  4. core-ci voted on patch set 2 V -1 04/17/26, 13:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100386

  5. core-ci voted on patch set 1 V -1 04/17/26, 13:52 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100384

  6. Helmut Hummel uploaded patch set 3 V -1 04/17/26, 18:03

  1. Helmut Hummel rebased onto patch set 4 04/17/26, 18:04

  2. core-ci voted on patch set 3 V -1 04/17/26, 18:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100409

  3. core-ci voted on patch set 4 V -1 04/17/26, 18:46 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100410

  4. Helmut Hummel uploaded patch set 5 V -1 04/18/26, 05:42

  5. core-ci voted on patch set 5 V -1 04/18/26, 05:50 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100445

  6. core-ci commented on patch set 5 04/18/26, 11:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100445

  7. core-ci voted on patch set 5 V +1 04/18/26, 11:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100445

  8. Helmut Hummel uploaded patch set 6 V +1 04/19/26, 12:02

  9. core-ci voted on patch set 6 V +1 04/19/26, 12:11 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100486

  10. Helmut Hummel uploaded patch set 7 V +1 04/19/26, 12:44

  11. Helmut Hummel uploaded patch set 8 04/19/26, 12:46

  12. Helmut Hummel marked it ready for review 04/19/26, 12:46

  13. core-ci voted on patch set 7 V +1 04/19/26, 12:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100487

  14. core-ci voted on patch set 8 V +1 04/19/26, 12:58 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100488

  15. Christian Kuhn commented on patch set 8 04/20/26, 09:04

    ClassLoadingInformation.php:59

    protected / private?
  16. Helmut Hummel uploaded patch set 9 V +1 04/20/26, 11:09

  17. core-ci voted on patch set 9 V +1 04/20/26, 11:22 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100547

  18. Oliver Klee commented on patch set 9 04/20/26, 11:24

    ClassLoadingInformation.php:59 Reply

    Done
  19. Benni Mack voted on patch set 9 CR +1 V +1 04/20/26, 11:42

  20. Stefan Bürk voted on patch set 9 CR +1 V +1 04/20/26, 11:52

  21. Georg Ringer voted on patch set 9 CR +1 V +1 04/20/26, 11:55

  22. Christian Kuhn voted on patch set 9 CR +2 V +2 04/20/26, 12:20

  23. Christian Kuhn merged patch set 10 04/20/26, 12:20

  24. Christian Kuhn commented on patch set 10 04/20/26, 12:30

    note: feature exception has been signed-off by benni internally.
  25. Benjamin Franzke commented on patch set 10 04/21/26, 10:43

    Unresolved

    FYI: This raise causes an error for instances that update from TYPO3 v13 to v14.3.0: See https://forge.typo3.org/issues/109666