infusionsoft / infusionsoft-php

PHP client library for the Infusionsoft API.
https://developer.infusionsoft.com/
Other
129 stars 126 forks source link

Class "Symfony\Component\EventDispatcher\Event" not found #316

Closed kevinpallado closed 9 months ago

kevinpallado commented 1 year ago

I got this error when doing data query using this sdk.

I am using the version below

"php": "^8.1",
"laravel/framework": "^10.10"

actual code

$infusionsoft = new IFS();
$infusionsoft->setToken(new Token($this->setTokenParamsObj($apiService), true));
try {
     $data = $infusionsoft->data()->query('Contact',1,0,array('Email' => $this->dataRequest['email'], '_LICENSE' => $this->dataRequest['licenseNumber']),array('Id','FirstName','LastName','Email','_LICENSE','PHONE1'), 'Email',false);
} catch (\Infusionsoft\Http\HttpException $e) {
     throw Exception::withMessages([
                'message' => $e->getMessage()
            ]);
        }

any idea how to fix this one?

iceverge commented 12 months ago

I got the same issue. Anyone out there pls help.

cwyrwas commented 9 months ago

I ran into this today when setting up a new Laravel app. Running composer upgrade sorted it out for me.