浏览代码

[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;
     private $type;
 
 
     /**
     /**
+     * Whether children could be added to the group
      * @var Boolean
      * @var Boolean
      */
      */
     private $allowAdd;
     private $allowAdd;
 
 
+    /**
+     * Whether children could be removed from the group
+     * @var Boolean
+     */
+    private $allowDelete;
+
     public function __construct(FormFactoryInterface $factory, $type, $allowAdd = false, $allowDelete = false)
     public function __construct(FormFactoryInterface $factory, $type, $allowAdd = false, $allowDelete = false)
     {
     {
         $this->factory = $factory;
         $this->factory = $factory;