Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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