hugofirth / laravel-mailchimp

A composer package for the MailChimp API PHP class (as provided by MailChimp) which supports the Laravel 4 framework.
96 stars 27 forks source link

Class 'HugoFirth\Mailchimp\Facades\MailchimpWrapper' not found #35

Closed maxlobanov closed 9 years ago

maxlobanov commented 9 years ago

Your Facade uses namespace HugoFirth\Mailchimp, when all other files uses namespace Hugofirth\Mailchimp

IDE autocompletes MailchimpWrapper' wrong namespace, and it causes an exception 'ErrorException' with message 'Class 'HugoFirth\Mailchimp\Facades\MailchimpWrapper' not found'.

P.S. It is not an critical issue and is solved easily with manual namespace declaration :)

hadifarnoud commented 9 years ago

I have the same issue. how can I fix it?

victorpierredev commented 9 years ago

Hey @hadifarnoud I hope you have figured out by now, as @maksl explained, you just need to correct the casing of the namespace.Just change HugoFirth\Mailchimp to Hugofirth\Mailchimp on your vendor/hugofirth /mailchimp/src/Hugofirth/Mailchimp/Facades/MailChimpWrapper.php file.

hadifarnoud commented 9 years ago

@vpakg is the package going to update with this fix?

victorpierredev commented 9 years ago

Hey @hadifarnoud , I'm not a contributer to the package. We can do a pull request, but there is no garantee that the maintainers will merge.

hugofirth commented 9 years ago

I have updated master to include this simple fix. I'll tag a path release later today once I make sure there aren't other changes on master which shouldn't be tagged as a patch.