Bug #82542
closedClassloader information is not generating optimized class map for psr-4 when it is called the first time
100%
Description
To reproduce the easiest way was with typo3_console (bit when doing some stuff manually it should be possible without):
- Have an Extension in typo3conf/ext that is NOT installed
- That install does need to have a composer.json with a "psr-4" autoload information and the corresponding directory needs to exist.
- Either call "typo3cms install:generatepackagestates" to install all existing extensions in typo3conf/ext or manually add the extension to PackageStates.php (do not use Extension Manager because that one doesn't guarantee the dumpautoload only happens once)
- Dump autoload information using CLI.
Either: typo3cms extension:dumpautoload
or: typo3/cli_dispatch.phpsh extbase extension:dumpclassloadinginformation
Now the autoload_psr4.php is produced correctly.
However, autoload_classmap.php does not contain the classes of the previously NOT installed extension.
That only happens on a second call of "typo3cms extension:dumpautoload" or "typo3/cli_dispatch.phpsh extbase extension:dumpclassloadinginformation"
However, due to classloading performance the optimized map should always be generated even for PSR-4 entries, see:
https://getcomposer.org/doc/articles/autoloader-optimization.md
Updated by Gerrit Code Review about 7 years ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54207
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54207
Updated by Gerrit Code Review about 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54207
Updated by Gerrit Code Review about 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54207
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54224
Updated by Helmut Hummel about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 08cc3232c2aa9c11805dde60ae2f43aa316710d2.