Add before step save hook per step key to simplify usage

[MAILPOET-4515]
This commit is contained in:
Jan Jakes
2022-08-02 10:20:36 +02:00
committed by Veljko V
parent 24a63f6448
commit d1fddb85f7
5 changed files with 12 additions and 7 deletions

View File

@@ -41,6 +41,9 @@ class MailPoetIntegration implements Integration {
$registry->addAction($this->sendEmailAction);
// sync step args (subject, preheader, etc.) to email settings
$registry->onBeforeWorkflowStepSave([$this->sendEmailAction, 'saveEmailSettings']);
$registry->onBeforeWorkflowStepSave(
[$this->sendEmailAction, 'saveEmailSettings'],
$this->sendEmailAction->getKey()
);
}
}