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

Laravel5 issue #32

Open ChristopherDosin opened 9 years ago

ChristopherDosin commented 9 years ago

If i run php artisan config:publish hugofirth/mailchimp i get this error

vagrant@homestead:~/code/dmc$ php artisan config:publish hugofirth/mailchimp
exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /home/vagrant/code/dmc/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:140
Stack trace:
ghost commented 9 years ago

is this resolved?

skovmand commented 9 years ago

No it is not. Any way to solve it?

ChristopherDosin commented 9 years ago

maybe php artisan vendor:publish ?

skovmand commented 9 years ago

I tried php artisan vendor:publish --provider="MailchimpServiceProvider"

Same problem occurs: exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /home/vagrant/Code/traeningsprojekt.dk/l5site/storage/framework/compiled.php:4351 Running Laravel 5.0.1

Halpha commented 9 years ago

As I see the problem is: $this->package('hugofirth/mailchimp'); in the MailchimpServiceProvider boot method. So I think this logic is changed..

Halpha commented 9 years ago

And as I see, the config files are changed to objects and the config file in in mailchimp is still an array.

ChristopherDosin commented 9 years ago

Oh - also the mailchimp/mailchimp package does not longer exist :-1:

Halpha commented 9 years ago

Hm, the mailchim\mailchimp package was no problem on my side. But I have to say that I use the dev-master version in my composer.json.

skovmand commented 9 years ago

The mailchimp/mailchimp package still exists.

skovmand commented 9 years ago

I did my own package for using Mailchimp in L5, if you are interested: https://packagist.org/packages/skovmand/mailchimp-laravel

Halpha commented 9 years ago

Thanks @skovmand - I love it:-)

hugofirth commented 9 years ago

Hi Guys, I just wanted to jump in here and say that I have seen this. Unfortunately I am completely flat out at the moment and so haven't had time for any php dev of late. These kind of issues were why I never tagged a release for L5, as I haven't done testing.

Good news is though, that my deadline for this craziness is just around the corner. I'd like to give this package some love, as it does seem that there is an interest in it. Watch this space, in the meantime, if you're on L5 then other packages like the one by @skovmand will probably be the way to go.

Or ... you know.... if anyone wanted to make a PR :smile: