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

This commit is contained in:
Bernhard Schussek 2011-03-23 21:51:50 +01:00
parent c01419d856
commit f71ae03143
6 changed files with 5 additions and 25 deletions

View File

@ -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);

View File

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

View File

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

View File

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

View File

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

View File

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