Issue Bug Rejected

#69563Autoloader looks in wrong directory for class files

Thomas Hucke 09/06/15, 17:38 updated 09/16/15, 17:13

Description

I stumbeld upon this issue setting in my controller

     protected $viewFormatToObjectNameMap = array(
        'json' => 'Thucke\ThRating\View\JsonView',
    );

Normally I would expect that I have to put the file in my extension directory

EXT:th_rating/Classes/View/JsonView.php

… that doesn’t work.
I figured out that TYPO3 instead looks for the following file

typo3\vendor\typo3\cms-composer-installers\Classes\Thucke\ThRating\View\JsonView.php

I’d assume that the autoloader might have a bug there.
But I’m sure you guys will find the right point to change …

Thanks
Thomas

Reviews 0

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