Browse Source

Replaced deprecated events PRE_BIND and BIND with PRE_SUBMIT and SUBMIT

Matthias Althaus 12 years ago
parent
commit
d1518c33be

+ 1 - 1
Form/EventListener/MergeCollectionListener.php

@@ -36,7 +36,7 @@ class MergeCollectionListener implements EventSubscriberInterface
     public static function getSubscribedEvents()
     {
         return array(
-            FormEvents::BIND => array('onBind', 10),
+            FormEvents::SUBMIT => array('onBind', 10),
         );
     }
 

+ 2 - 2
Form/EventListener/ResizeFormListener.php

@@ -64,8 +64,8 @@ class ResizeFormListener implements EventSubscriberInterface
     {
         return array(
             FormEvents::PRE_SET_DATA    => 'preSetData',
-            FormEvents::PRE_BIND        => 'preBind',
-            FormEvents::BIND            => 'onBind',
+            FormEvents::PRE_SUBMIT      => 'preBind',
+            FormEvents::SUBMIT          => 'onBind',
         );
     }