Skip to content

Error When Attempting to Use the Wrapper #5

Closed
@garethdaine

Description

@garethdaine

I am getting this error when trying to use any of the API methods on MailchimpWrapper:

Using $this when not in object context

This happens when registering the service provider.

public function register()
{
    $this->app->singleton('mailchimp_wrapper',  function() {
        $mc = new Mailchimp($this->app['config']->get('mailchimp::apikey'));

        return new MailchimpWrapper($mc);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions