소스 검색

Reverted last commit to preserve compatibility with Symfony 2.2

Matthias Althaus 12 년 전
부모
커밋
d012404fae
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      Form/EventListener/MergeCollectionListener.php
  2. 2 2
      Form/EventListener/ResizeFormListener.php

+ 1 - 1
Form/EventListener/MergeCollectionListener.php

@@ -36,7 +36,7 @@ class MergeCollectionListener implements EventSubscriberInterface
     public static function getSubscribedEvents()
     {
         return array(
-            FormEvents::SUBMIT => array('onBind', 10),
+            FormEvents::BIND => 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_SUBMIT      => 'preBind',
-            FormEvents::SUBMIT          => 'onBind',
+            FormEvents::PRE_BIND        => 'preBind',
+            FormEvents::BIND            => 'onBind',
         );
     }