소스 검색

[Form] Add a missing property delcaration in the ResizeFormListener

Victor Berchet 14 년 전
부모
커밋
b2b3b190ef
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php

+ 7 - 0
src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php

@@ -36,10 +36,17 @@ class ResizeFormListener implements EventSubscriberInterface
     private $type;
 
     /**
+     * Whether children could be added to the group
      * @var Boolean
      */
     private $allowAdd;
 
+    /**
+     * Whether children could be removed from the group
+     * @var Boolean
+     */
+    private $allowDelete;
+
     public function __construct(FormFactoryInterface $factory, $type, $allowAdd = false, $allowDelete = false)
     {
         $this->factory = $factory;