Skip to content

Instantly share code, notes, and snippets.

@meDavid
Last active March 7, 2017 13:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save meDavid/68a4bef43bdafaebbf9af4c71b50fc42 to your computer and use it in GitHub Desktop.
<?php
class ConfirmWorkflowListener implements EventSubscriberInterface {
....
public function onConfirmEmailTransition(Event $event) {
$application = $event->getSubject();
$this->confirmMailService->mailEmailConfirmedNotification($application);
}
public static function getSubscribedEvents() {
return array(
'workflow.creditcard_application_flow.transition.confirm_email' => array('onConfirmEmailTransition'),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment