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