Project

General

Profile

Actions

Bug #65872

closed

Install TYPO3 CMS with composer breaks the autoloader

Added by Kay no-lastname-given over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
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"


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #65804: Version requirement in composer.json for helhum/class-alias-loader is invalidClosed2015-03-18

Actions
Actions

Also available in: Atom PDF