You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks! sure thing, as I said in latest PR #39 (comment), I'm not using this anymore, not even using Mailchimp, so if you're interested to become a maintainer and work on the v2.X feel free to ask me 👌
I'm getting the same error : Attempted to load class "Event" from namespace "Symfony\Component\EventDispatcher".
Did you forget a "use" statement for e.g. "Symfony\Contracts\EventDispatcher\Event"? when I call newUser method :
public function newUser(Abonne $abonne)
{
// ...
$subscriber = new Subscriber($abonne->getEmail(), [
'FIRSTNAME' => $abonne->getName(),
], [
'language' => 'fr'
]);
$this->eventDispatcher->dispatch(
new SubscriberEvent($this->listId, $subscriber),
SubscriberEvent::EVENT_SUBSCRIBE
);
}
Symfony/Component/EventDispatcher/Event
is deprecated in Symfony 4.3 and replaced withSymfony/Contracts/EventDispatcher/Event
in Symfony 5.Applies to
src/Event/SubscriberEvent.php
andsrc/Event/WebhookEvent.php
.Maybe a candidate for the 2.0 branch mentioned?
#31
The text was updated successfully, but these errors were encountered: