Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Subscribed event to send mail not working #37

Open
ruddhani opened this issue Jun 14, 2017 · 0 comments
Open

Subscribed event to send mail not working #37

ruddhani opened this issue Jun 14, 2017 · 0 comments

Comments

@ruddhani
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant