Issue Bug Closed

#65872Install TYPO3 CMS with composer breaks the autoloader

Kay no-lastname-given 03/20/15, 16:37 updated 03/23/15, 11:15

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”

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.