[Form] Removed unused 'template' option
This commit is contained in:
parent
6588a47ba7
commit
80116be577
@ -34,7 +34,6 @@ class CollectionType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'collection',
|
||||
'modifiable' => false,
|
||||
'prototype' => true,
|
||||
'type' => 'text',
|
||||
|
@ -96,7 +96,6 @@ class DateTimeType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'datetime',
|
||||
'input' => 'datetime',
|
||||
'with_seconds' => false,
|
||||
'data_timezone' => null,
|
||||
|
@ -101,7 +101,6 @@ class DateType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'date',
|
||||
'years' => range(date('Y') - 5, date('Y') + 5),
|
||||
'months' => range(1, 12),
|
||||
'days' => range(1, 31),
|
||||
|
@ -95,7 +95,6 @@ class FieldType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'text', // TODO remove me
|
||||
'data' => null,
|
||||
'data_class' => null,
|
||||
'trim' => true,
|
||||
|
@ -57,7 +57,6 @@ class FileType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'file',
|
||||
'type' => 'string',
|
||||
'csrf_protection' => false,
|
||||
);
|
||||
|
@ -56,7 +56,6 @@ class FormType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'form',
|
||||
'data_constructor' => null,
|
||||
'csrf_protection' => true,
|
||||
'csrf_field_name' => '_token',
|
||||
|
@ -18,7 +18,6 @@ class HiddenType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'hidden',
|
||||
// Pass errors to the parent
|
||||
'error_bubbling' => true,
|
||||
);
|
||||
|
@ -24,7 +24,6 @@ class IntegerType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'integer',
|
||||
// default precision is locale specific (usually around 3)
|
||||
'precision' => null,
|
||||
'grouping' => false,
|
||||
|
@ -24,7 +24,6 @@ class NumberType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'number',
|
||||
// default precision is locale specific (usually around 3)
|
||||
'precision' => null,
|
||||
'grouping' => false,
|
||||
|
@ -24,7 +24,6 @@ class PercentType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'percent',
|
||||
'precision' => 0,
|
||||
'type' => 'fractional',
|
||||
);
|
||||
|
@ -29,7 +29,6 @@ class RepeatedType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'repeated',
|
||||
'type' => 'text',
|
||||
'options' => array(),
|
||||
'first_name' => 'first',
|
||||
|
@ -15,13 +15,6 @@ use Symfony\Component\Form\FormBuilder;
|
||||
|
||||
class TextareaType extends AbstractType
|
||||
{
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'textarea',
|
||||
);
|
||||
}
|
||||
|
||||
public function getParent(array $options)
|
||||
{
|
||||
return 'field';
|
||||
|
@ -80,7 +80,6 @@ class TimeType extends AbstractType
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
return array(
|
||||
'template' => 'time',
|
||||
'hours' => range(0, 23),
|
||||
'minutes' => range(0, 59),
|
||||
'seconds' => range(0, 59),
|
||||
|
Reference in New Issue
Block a user