[FEATURE] Use composer class loader for better performance 24/36124/5
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 18 Jan 2015 10:25:20 +0000 (11:25 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 19 Jan 2015 22:24:43 +0000 (23:24 +0100)
commit15bde67f8271e9dd9cd917583d7f5f6d3b5dbe00
treec6307ad0a5c2023164ba8a7dc31daf449ec39fe2
parentdda1844d94ddd9e67d60d2c9829550d4ef95a12b
[FEATURE] Use composer class loader for better performance

Require composer class loader early in the bootstrap gives us many benefits:

1. Very early classes can be found and loaded very early in the bootstrap
2. Get rid of complexity for default cases
3. Test classes will only loadable in testing context
4. Cache warmup will be much faster as much less files need to be written

Further details can be found on the wiki http://wiki.typo3.org/ComposerClassLoader

Resolves: #64361
Releases: master, 6.2
Change-Id: Ida22edf8383a9706726a8fdd11297b2983d17b1a
Reviewed-on: http://review.typo3.org/36124
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
13 files changed:
composer.json
typo3/contrib/vendor/autoload.php [new file with mode: 0644]
typo3/contrib/vendor/composer/ClassLoader.php [new file with mode: 0644]
typo3/contrib/vendor/composer/autoload_classmap.php [new file with mode: 0644]
typo3/contrib/vendor/composer/autoload_namespaces.php [new file with mode: 0644]
typo3/contrib/vendor/composer/autoload_psr4.php [new file with mode: 0644]
typo3/contrib/vendor/composer/autoload_real.php [new file with mode: 0644]
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
typo3/sysext/core/ext_autoload.php
typo3/sysext/extra_page_cm_options/composer.json
typo3/sysext/func_wizards/composer.json
typo3/sysext/perm/composer.json