mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 08:35:00 +00:00
fixes after merge of master into upgrade-sf4
This commit is contained in:
@@ -30,9 +30,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class CustomFieldType extends AbstractType
|
||||
{
|
||||
public function __construct(private readonly CustomFieldProvider $customFieldProvider, private readonly ObjectManager $om, private readonly TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly CustomFieldProvider $customFieldProvider, private readonly ObjectManager $om, private readonly TranslatableStringHelper $translatableStringHelper) {}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
|
@@ -27,8 +27,7 @@ class CustomFieldsGroupType extends AbstractType
|
||||
private readonly array $customizableEntities,
|
||||
// TODO : add comment about this variable
|
||||
private readonly TranslatorInterface $translator
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
// TODO : details about the function
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
|
@@ -17,9 +17,7 @@ use Symfony\Component\Form\DataTransformerInterface;
|
||||
|
||||
class CustomFieldDataTransformer implements DataTransformerInterface
|
||||
{
|
||||
public function __construct(private readonly CustomFieldInterface $customFieldDefinition, private readonly CustomField $customField)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly CustomFieldInterface $customFieldDefinition, private readonly CustomField $customField) {}
|
||||
|
||||
public function reverseTransform($value)
|
||||
{
|
||||
|
@@ -18,9 +18,7 @@ use Symfony\Component\Form\Exception\TransformationFailedException;
|
||||
|
||||
class CustomFieldsGroupToIdTransformer implements DataTransformerInterface
|
||||
{
|
||||
public function __construct(private readonly ObjectManager $om)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly ObjectManager $om) {}
|
||||
|
||||
/**
|
||||
* Transforms a string (id) to an object (CustomFieldsGroup).
|
||||
|
@@ -16,9 +16,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class CustomFieldsTitleType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
}
|
||||
public function buildForm(FormBuilderInterface $builder, array $options) {}
|
||||
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
|
@@ -42,9 +42,7 @@ class LinkedCustomFieldsType extends AbstractType
|
||||
*/
|
||||
private array $options = [];
|
||||
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper) {}
|
||||
|
||||
/**
|
||||
* append Choice on POST_SET_DATA event.
|
||||
|
Reference in New Issue
Block a user