mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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
|
||||
*/
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'custom_field_choice';
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class CustomFieldType extends AbstractType
|
||||
|
||||
/**
|
||||
*
|
||||
* @var CustomFieldCompiler
|
||||
* @var CustomFieldCompiler
|
||||
*/
|
||||
private $customFieldCompiler;
|
||||
|
||||
@ -54,19 +54,18 @@ class CustomFieldType extends AbstractType
|
||||
$builder->get($cf->getSlug())->setRequired($cf->isRequired());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function configureOptions(\Symfony\Component\OptionsResolver\OptionsResolver $resolver)
|
||||
{
|
||||
$resolver
|
||||
->setRequired(array('group'))
|
||||
->addAllowedTypes(array('group' =>
|
||||
array('Chill\CustomFieldsBundle\Entity\CustomFieldsGroup')))
|
||||
->addAllowedTypes('group', array('Chill\CustomFieldsBundle\Entity\CustomFieldsGroup'))
|
||||
;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'custom_field';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user