mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fix deprecations: use fqcn for customfieldtype
This commit is contained in:
parent
3778012565
commit
7637954a8d
@ -29,6 +29,7 @@ use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
|||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||||
use Doctrine\Common\Persistence\ObjectManager;
|
use Doctrine\Common\Persistence\ObjectManager;
|
||||||
|
use Chill\CustomFieldsBundle\Form\Type\CustomFieldType;
|
||||||
|
|
||||||
class ReportType extends AbstractType
|
class ReportType extends AbstractType
|
||||||
{
|
{
|
||||||
@ -79,7 +80,7 @@ class ReportType extends AbstractType
|
|||||||
->add('user')
|
->add('user')
|
||||||
->add('date', 'date',
|
->add('date', 'date',
|
||||||
array('required' => true, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
|
array('required' => true, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
|
||||||
->add('cFData', 'custom_field',
|
->add('cFData', CustomFieldType::class,
|
||||||
array('attr' => array('class' => 'cf-fields'),
|
array('attr' => array('class' => 'cf-fields'),
|
||||||
'group' => $options['cFGroup']))
|
'group' => $options['cFGroup']))
|
||||||
;
|
;
|
||||||
@ -91,7 +92,7 @@ class ReportType extends AbstractType
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OptionsResolverInterface $resolver
|
* @param OptionsResolver $resolver
|
||||||
*/
|
*/
|
||||||
public function configureOptions(OptionsResolver $resolver)
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user