LexikWorkflowBundle icon indicating copy to clipboard operation
LexikWorkflowBundle copied to clipboard

Subscribed event to send mail not working

Open ruddhani opened this issue 8 years ago • 0 comments

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.

ruddhani avatar Jun 14 '17 13:06 ruddhani