I’m updating a plugin I developed for the Mautic 3.x. In this plugin I use a LeadSubscriber to check a field of the incoming lead and either add or not a DNC status (using the addDncForContact()
method) based on the analysis. On 2.x versions of Mautic I just needed to use this method, call the setCurrentLead()
from the Lead Model to save it and it was good to go. However, I found out that the setCurrentLead()
method is now depracated, but didn’t managed to find out how I’m supposed to do this operation now. Could someone help me out with this? I already checked out the upgrade file for 3.x on github, it says to use the ContactTracker instead, however I didn’t had success using it.