[FEATURE] Add possibility for extensions to register class maps 23/43523/7
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 24 Sep 2015 13:57:57 +0000 (15:57 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 26 Sep 2015 17:46:57 +0000 (19:46 +0200)
commit9a786007b584f46e8a2e1b47a27d053a44a6022d
treeb6656978d16042cddca82aea06050d3e296b9f7c
parent4c6ddcb34acb7d63588838bb2135b95677a2908e
[FEATURE] Add possibility for extensions to register class maps

With the old class loader it was possible for extension authors
to register several classes in an ext_autoload.php file.

This possibility was completely removed with introduction of composer class loading.
In composer mode, one can fully benefit from composer and its class loading options.
However TYPO3 installations in non composer mode (extracted and symlinked
archive of sources), lack this functionality completely.

It could however be useful to have that for some edge cases or legacy code,
without completely relying on a full scan for classes in the complete extension
directory (when no new class loading info is found at all), which can be an issue
of its own.

With this change it is also possible to define a "classmap" section
in the composer.json or ext_emcomf.php file.

Resolves: #70078
Releases: master
Change-Id: I86f65fbb479eb46160ecef3a547a91e453ee5764
Reviewed-on: http://review.typo3.org/43523
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Core/ClassLoadingInformationGenerator.php
typo3/sysext/core/Documentation/Changelog/master/Feature-68700-AutoloadDefinitionCanBeProvidedInExt_emconfphp.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-70078-ExtensionsCanProvideAClassMapForClassLoading.rst [new file with mode: 0644]