Actions
Bug #65872
closedInstall TYPO3 CMS with composer breaks the autoloader
Start date:
2015-03-20
Due date:
% Done:
0%
Estimated time:
0.50 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If you install TYPO3 CMS via composer and use an external autoloader with "TYPO3_COMPOSER_AUTOLOAD=1" the Loader faild with:
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Method "getClassNameForAlias" does not exist!' in /var/www/vhosts/localhost/vendor/helhum/class-alias-loader/Classes/Composer/ClassAliasLoader.php on line 113
The reason is that the ClassAliasLoader in version 1.1.3 is needed, but required is "1.0.*@dev" in the typo3_src/composer.json.
https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_6-2-11/composer.json
https://github.com/helhum/class-alias-loader/commit/0619e9224f5c473f5885e71b5fb7977f51cc9f69
So the composer require have to set to "helhum/class-alias-loader": "1.1.*@dev"
Actions