Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class not found #5

Closed
rudolphp opened this issue Jul 31, 2016 · 2 comments
Closed

Class not found #5

rudolphp opened this issue Jul 31, 2016 · 2 comments

Comments

@rudolphp
Copy link

rudolphp commented Jul 31, 2016

Hi I get the error "Class 'App\Jobs\ApiContact' not found"

I am trying to use this in Laravel after following the steps provided in README.

Do I need to give a path in "use" to use this lib. It is not specified in the Doc.

$contact_data = new ApiContact([
'email' => $this->user->email,
'emailType' => 'Html',
'dataFields' => [
[
'key' => 'Title',
'value' => $this->user->tname
],
]);

        try
        {
            $contact = Dotmailer::PostContacts($contact_data);
        }
@rudolphp
Copy link
Author

rudolphp commented Aug 1, 2016

I included use DotMailer\Api\DataTypes\ApiContact;
Now the error is "Cannot use 'Null' as class name as it is reserved"
This is because if the class Null.php in DotMailer\Api\DataTypes

@christian-thomas
Copy link
Contributor

@rudolphp The package is not maintained I'm afraid.

The issue you mention relates to PHP7 and an issue in the underlying package, the package I've provided is just a wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants