소스 검색

[Form] AbstractType::getParent() returns 'form' by default now

Bernhard Schussek 14 년 전
부모
커밋
f71ae03143

+ 5 - 0
src/Symfony/Component/Form/Type/AbstractType.php

@@ -30,6 +30,11 @@ abstract class AbstractType implements FormTypeInterface
         return array();
     }
 
+    public function getParent(array $options)
+    {
+        return 'form';
+    }
+
     public function getName()
     {
         return get_class($this);

+ 0 - 5
src/Symfony/Component/Form/Type/CollectionType.php

@@ -40,11 +40,6 @@ class CollectionType extends AbstractType
         );
     }
 
-    public function getParent(array $options)
-    {
-        return 'form';
-    }
-
     public function getName()
     {
         return 'collection';

+ 0 - 5
src/Symfony/Component/Form/Type/DateTimeType.php

@@ -107,11 +107,6 @@ class DateTimeType extends AbstractType
         );
     }
 
-    public function getParent(array $options)
-    {
-        return 'form';
-    }
-
     public function getName()
     {
         return 'datetime';

+ 0 - 5
src/Symfony/Component/Form/Type/FileType.php

@@ -57,11 +57,6 @@ class FileType extends AbstractType
         );
     }
 
-    public function getParent(array $options)
-    {
-        return 'form';
-    }
-
     public function getName()
     {
         return 'file';

+ 0 - 5
src/Symfony/Component/Form/Type/RepeatedType.php

@@ -38,11 +38,6 @@ class RepeatedType extends AbstractType
         );
     }
 
-    public function getParent(array $options)
-    {
-        return 'form';
-    }
-
     public function getName()
     {
         return 'repeated';

+ 0 - 5
src/Symfony/Component/Form/Type/TimeType.php

@@ -89,11 +89,6 @@ class TimeType extends AbstractType
         );
     }
 
-    public function getParent(array $options)
-    {
-        return 'form';
-    }
-
     public function getName()
     {
         return 'time';