MagePsycho / magento2-custom-shipping

Custom Shipping Module for Magento 2
https://www.magepsycho.com/extensions.html
70 stars 34 forks source link

Fix wrong composer declaration #16

Closed antoninobonumore closed 2 years ago

antoninobonumore commented 2 years ago

Install with composer cause this issue on Magento

ReflectionException with message 'Class MagePsycho\CustomShipping\Model\Carrier\CustomShipping does not exist'

MagePsycho commented 2 years ago

Thanks for the PR. Please preserve the src/composer.json file so that I can accept the PR.

MagePsycho commented 2 years ago

Maybe I am not able to explain it properly. Please don't delete or empty the file src/composer.json

For the composer, the real fix is to add src/ in ./composer.json (which you have submitted in PR)

"psr-4": {
      "MagePsycho\\CustomShipping\\": "src/"
    }
MagePsycho commented 2 years ago

@antoninobonumore Please restore the original src/composer.json file so that I can merge the PR now.