mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix deprecations: use fqcn + remove arrays in addAllowedTypes/Values
This commit is contained in:
parent
b07d876157
commit
14412c87fe
@ -122,7 +122,7 @@ class CustomFieldType extends AbstractType
|
|||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getBlockPrefix()
|
||||||
{
|
{
|
||||||
return 'custom_field_choice';
|
return 'custom_field_choice';
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class CustomFieldType extends AbstractType
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @var CustomFieldCompiler
|
* @var CustomFieldCompiler
|
||||||
*/
|
*/
|
||||||
private $customFieldCompiler;
|
private $customFieldCompiler;
|
||||||
|
|
||||||
@ -54,19 +54,18 @@ class CustomFieldType extends AbstractType
|
|||||||
$builder->get($cf->getSlug())->setRequired($cf->isRequired());
|
$builder->get($cf->getSlug())->setRequired($cf->isRequired());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configureOptions(\Symfony\Component\OptionsResolver\OptionsResolver $resolver)
|
public function configureOptions(\Symfony\Component\OptionsResolver\OptionsResolver $resolver)
|
||||||
{
|
{
|
||||||
$resolver
|
$resolver
|
||||||
->setRequired(array('group'))
|
->setRequired(array('group'))
|
||||||
->addAllowedTypes(array('group' =>
|
->addAllowedTypes('group', array('Chill\CustomFieldsBundle\Entity\CustomFieldsGroup'))
|
||||||
array('Chill\CustomFieldsBundle\Entity\CustomFieldsGroup')))
|
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName()
|
public function getBlockPrefix()
|
||||||
{
|
{
|
||||||
return 'custom_field';
|
return 'custom_field';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user