Closed fritzmg closed 3 years ago
We didn't noticed any errors so far with composer 2.0, but I don't see any problem with this change. There is also a classes folder, I think it should be added to the array as well.
Ok, forget my last comment, now I'm getting what you're PR want to do. I think we can mege it, @Defcon0 ?
You are right though, the problem is actually something else. The class name does not match the file name. My PR would only be relevant for PSR-4, but you are using PSR-0.
Also the class not being able to load in Composer 2.x can be ignored, since the class is only relevant for Contao 3 anyway.
@fritzmg Thanks for reporting back. We're working on getting rid of this extension anyway someday :crossed_fingers: :pray: :wink:
This PR fixes the wrong autoloading definition in the
composer.json
. Since you already use a physicalHaste
subfolder, you must not add it to the root namespace. Alternatively you could also move all folders/files withinlibrary/Haste/
one folder up instead (i.e. getting rid of theHaste/
subfolder inlibrary/
).The autoloading will not work with the new Contao Manager anymore, which is due to be released soon, since it uses Composer 2.x.