Commit 04c334c0 by Frédéric

Update BoltFormExtendedExtension.php

parent a8156f51
...@@ -21,12 +21,12 @@ class BoltFormExtendedExtension extends SimpleExtension ...@@ -21,12 +21,12 @@ class BoltFormExtendedExtension extends SimpleExtension
*/ */
protected function subscribe(EventDispatcherInterface $dispatcher) protected function subscribe(EventDispatcherInterface $dispatcher)
{ {
$dispatcher->addListener(BoltFormsEvents::PRE_EMAIL_SEND, array($this, 'myPostSubmit')); $dispatcher->addListener(BoltFormsEvents::PRE_SUBMIT, array($this, 'myPostSubmit'));
} }
public function myPostSubmit($event) public function myPostSubmit($event)
{ {
var_dump($event); var_dump($event->getForm()->getName());
die(); die();
/*if ($event->getForm()->getName() === 'my_form') { /*if ($event->getForm()->getName() === 'my_form') {
// Get the data from the event // Get the data from the event
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment