Project

General

Profile

Actions

Bug #65688

closed

Using TYPO3_COMPOSER_AUTOLOAD requires post-autoload-dump script in project composer.json

Added by Alexander Stehlik over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-03-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I tested the new class loading with TYPO3_COMPOSER_AUTOLOAD enabled.

Everything works fine, unless you do not have extensions that use legacy class names in their ext_localconf.php files. Those classes will not be found.

What solved the problem for me was adding the post-autoload-dump setting the composer.json file of my project:

"scripts": {
    "post-autoload-dump": "Helhum\\ClassAliasLoader\\Composer\\ClassAliasGenerator::generateAliasMap" 
},

In my point of view it makes sense, that this script configuration needs to be added, otherwise the alias map will not be available in the autoloader of composer.

But this should be documented.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #64361: Improve class loading performanceClosed2015-01-19

Actions
Actions

Also available in: Atom PDF