Closed james2doyle closed 2 years ago
@james2doyle Make sure that you have file exist at these location. modules/avored/cash-on-delivery/src/Module.php
.
Yes, i am setting the autoloading in programming so you don't have to add it into composer.json.
Yeah they exist. I cloned this yesterday from master
. They autoloading seems to not be working at the moment unless set explicitly
If they files didn’t exist, my patch to composer.json
wouldn’t have worked
@james2doyle It is very interesting. I can't replicate the bug in my local.
If it happens with others too then there might be a bug in Module/Manager.php
file. (This file is part of the framework)
Describe the bug A composer package cannot be found:
Class 'AvoRed\CashOnDelivery\Module' not found
To Reproduce Steps to reproduce the behavior:
master
composer install
Screenshots
Additional context I think the reason is that the
modules
folder is not autoloaded properly. The error can be fixed with the following patch: