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
{{ message }}
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
I have implemented 02 routes from draft creation to admin validation steps. Now I want to add a event subscriber so that after draft creation is reached, an email will trigger.
I am adding the event to subscribedEvents as:
public static function getSubscribedEvents()
{
return array(
'post_publication.draft_created.reached' => array(
'handleDraftCreated',
),
);
}
But unfortunately the handleDraftCreated function never called:
public function handleDraftCreated(StepEvent $event)
{
echo "handleDraftCreated called";
}
Anything I am missing here, need help, thanks in advance.