diff --git a/src/Field/ArrayField.php b/src/Field/ArrayField.php index 1b9de9585c..3e0e996441 100644 --- a/src/Field/ArrayField.php +++ b/src/Field/ArrayField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\CollectionType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class ArrayField implements FieldInterface +final class ArrayField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/AssociationField.php b/src/Field/AssociationField.php index e6f57426d3..0d52b70577 100644 --- a/src/Field/AssociationField.php +++ b/src/Field/AssociationField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class AssociationField implements FieldInterface +final class AssociationField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/AvatarField.php b/src/Field/AvatarField.php index 8fffc2fe8b..f2721c0170 100644 --- a/src/Field/AvatarField.php +++ b/src/Field/AvatarField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Option\Size; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class AvatarField implements FieldInterface +final class AvatarField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/BooleanField.php b/src/Field/BooleanField.php index 67fa6e3fc0..ce34f19b7d 100644 --- a/src/Field/BooleanField.php +++ b/src/Field/BooleanField.php @@ -4,14 +4,14 @@ use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; use EasyCorp\Bundle\EasyAdminBundle\Config\Option\TextAlign; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class BooleanField implements FieldInterface +final class BooleanField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/ChoiceField.php b/src/Field/ChoiceField.php index 77123da384..29cfdfd611 100644 --- a/src/Field/ChoiceField.php +++ b/src/Field/ChoiceField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class ChoiceField implements FieldInterface +final class ChoiceField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/CodeEditorField.php b/src/Field/CodeEditorField.php index 0d554a49f4..98c7f393f6 100644 --- a/src/Field/CodeEditorField.php +++ b/src/Field/CodeEditorField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\CodeEditorType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class CodeEditorField implements FieldInterface +final class CodeEditorField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/CollectionField.php b/src/Field/CollectionField.php index 1e253ca0e1..2039ddb766 100644 --- a/src/Field/CollectionField.php +++ b/src/Field/CollectionField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\CollectionType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class CollectionField implements FieldInterface +final class CollectionField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/ColorField.php b/src/Field/ColorField.php index ae56ec98e0..24fdbc3912 100644 --- a/src/Field/ColorField.php +++ b/src/Field/ColorField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\ColorType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class ColorField implements FieldInterface +final class ColorField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/CountryField.php b/src/Field/CountryField.php index 161e34efa0..21bd6d2a30 100644 --- a/src/Field/CountryField.php +++ b/src/Field/CountryField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class CountryField implements FieldInterface +final class CountryField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/CurrencyField.php b/src/Field/CurrencyField.php index 776e22d0bf..34753e55d6 100644 --- a/src/Field/CurrencyField.php +++ b/src/Field/CurrencyField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\CurrencyType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class CurrencyField implements FieldInterface +final class CurrencyField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/DateField.php b/src/Field/DateField.php index df213330f8..9f2461bcde 100644 --- a/src/Field/DateField.php +++ b/src/Field/DateField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\DateType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class DateField implements FieldInterface +final class DateField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/DateTimeField.php b/src/Field/DateTimeField.php index a4f8faaccd..f935d6b1a0 100644 --- a/src/Field/DateTimeField.php +++ b/src/Field/DateTimeField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\DateTimeType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class DateTimeField implements FieldInterface +final class DateTimeField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/EmailField.php b/src/Field/EmailField.php index 1bc3791908..cd0ded6835 100644 --- a/src/Field/EmailField.php +++ b/src/Field/EmailField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class EmailField implements FieldInterface +final class EmailField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/Field.php b/src/Field/Field.php index ad99561d75..7b93bf5d9c 100644 --- a/src/Field/Field.php +++ b/src/Field/Field.php @@ -2,13 +2,13 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class Field implements FieldInterface +final class Field implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/FieldTrait.php b/src/Field/FieldTrait.php index 84a61c3c08..fbe924b68b 100644 --- a/src/Field/FieldTrait.php +++ b/src/Field/FieldTrait.php @@ -503,4 +503,9 @@ public function getAsDto(): FieldDto { return $this->dto; } + + public function setIcon(?string $iconCssClass, string $invokingMethod = 'FormField::setIcon()'): self + { + return $this; + } } diff --git a/src/Field/FormField.php b/src/Field/FormField.php index 5ef7097ab1..4f9e887e18 100644 --- a/src/Field/FormField.php +++ b/src/Field/FormField.php @@ -2,7 +2,7 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormColumnOpenType; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormFieldsetOpenType; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormRowType; @@ -13,7 +13,7 @@ /** * @author Javier Eguiluz */ -final class FormField implements FieldInterface +final class FormField implements FieldTraitAwareInterface { use FieldTrait; @@ -142,7 +142,7 @@ public static function addColumn(int|string $cols = 'col', TranslatableInterface ->setValue(true); } - public function setIcon(string $iconCssClass): self + public function setIcon(?string $iconCssClass, string $invokingMethod = 'FormField::setIcon()'): self { $this->setCustomOption(self::OPTION_ICON, $iconCssClass); diff --git a/src/Field/HiddenField.php b/src/Field/HiddenField.php index 5fa1089712..52d307215d 100644 --- a/src/Field/HiddenField.php +++ b/src/Field/HiddenField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class HiddenField implements FieldInterface +final class HiddenField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/IdField.php b/src/Field/IdField.php index 2f2cced6e1..674495bfa1 100644 --- a/src/Field/IdField.php +++ b/src/Field/IdField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class IdField implements FieldInterface +final class IdField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/ImageField.php b/src/Field/ImageField.php index daefc2b5fa..100f40209d 100644 --- a/src/Field/ImageField.php +++ b/src/Field/ImageField.php @@ -4,7 +4,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; use EasyCorp\Bundle\EasyAdminBundle\Config\Option\TextAlign; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\FileUploadType; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\Image; @@ -13,7 +13,7 @@ /** * @author Javier Eguiluz */ -final class ImageField implements FieldInterface +final class ImageField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/IntegerField.php b/src/Field/IntegerField.php index 675eff86ed..3fb4aaf28f 100644 --- a/src/Field/IntegerField.php +++ b/src/Field/IntegerField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\IntegerType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class IntegerField implements FieldInterface +final class IntegerField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/LanguageField.php b/src/Field/LanguageField.php index dd9a3f3824..5efcab0f5b 100644 --- a/src/Field/LanguageField.php +++ b/src/Field/LanguageField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\LanguageType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class LanguageField implements FieldInterface +final class LanguageField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/LocaleField.php b/src/Field/LocaleField.php index 3fb996c4eb..3297847bd5 100644 --- a/src/Field/LocaleField.php +++ b/src/Field/LocaleField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\LocaleType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class LocaleField implements FieldInterface +final class LocaleField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/MoneyField.php b/src/Field/MoneyField.php index 5d0963b700..727c4e8b51 100644 --- a/src/Field/MoneyField.php +++ b/src/Field/MoneyField.php @@ -3,7 +3,7 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Option\TextAlign; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\MoneyType; use Symfony\Component\Intl\Currencies; use Symfony\Contracts\Translation\TranslatableInterface; @@ -11,7 +11,7 @@ /** * @author Javier Eguiluz */ -final class MoneyField implements FieldInterface +final class MoneyField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/NumberField.php b/src/Field/NumberField.php index 34c4223848..75c21057ad 100644 --- a/src/Field/NumberField.php +++ b/src/Field/NumberField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\NumberType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class NumberField implements FieldInterface +final class NumberField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/PercentField.php b/src/Field/PercentField.php index c8e3e2e4b5..afcc809ce8 100644 --- a/src/Field/PercentField.php +++ b/src/Field/PercentField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Option\TextAlign; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\PercentType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class PercentField implements FieldInterface +final class PercentField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/SlugField.php b/src/Field/SlugField.php index 88c38032b9..9ddf01790d 100644 --- a/src/Field/SlugField.php +++ b/src/Field/SlugField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\SlugType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Jonathan Scheiber */ -final class SlugField implements FieldInterface +final class SlugField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/TelephoneField.php b/src/Field/TelephoneField.php index 07630ac64a..5ec56f911a 100644 --- a/src/Field/TelephoneField.php +++ b/src/Field/TelephoneField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TelType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class TelephoneField implements FieldInterface +final class TelephoneField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/TextEditorField.php b/src/Field/TextEditorField.php index 7b57678aa9..1ca6b3f42a 100644 --- a/src/Field/TextEditorField.php +++ b/src/Field/TextEditorField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\TextEditorType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class TextEditorField implements FieldInterface +final class TextEditorField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/TextField.php b/src/Field/TextField.php index 3bb0314e18..e873898f96 100644 --- a/src/Field/TextField.php +++ b/src/Field/TextField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class TextField implements FieldInterface +final class TextField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/TextareaField.php b/src/Field/TextareaField.php index 90c92b8e9e..dcfda56c47 100644 --- a/src/Field/TextareaField.php +++ b/src/Field/TextareaField.php @@ -3,14 +3,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; use EasyCorp\Bundle\EasyAdminBundle\Config\Asset; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class TextareaField implements FieldInterface +final class TextareaField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/TimeField.php b/src/Field/TimeField.php index f0162f5bcf..14c4528220 100644 --- a/src/Field/TimeField.php +++ b/src/Field/TimeField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TimeType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class TimeField implements FieldInterface +final class TimeField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/TimezoneField.php b/src/Field/TimezoneField.php index 444b82e89f..cae2924705 100644 --- a/src/Field/TimezoneField.php +++ b/src/Field/TimezoneField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\TimezoneType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class TimezoneField implements FieldInterface +final class TimezoneField implements FieldTraitAwareInterface { use FieldTrait; diff --git a/src/Field/UrlField.php b/src/Field/UrlField.php index 1b5d6fd02f..d30de65d74 100644 --- a/src/Field/UrlField.php +++ b/src/Field/UrlField.php @@ -2,14 +2,14 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Field; -use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface; +use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldTraitAwareInterface; use Symfony\Component\Form\Extension\Core\Type\UrlType; use Symfony\Contracts\Translation\TranslatableInterface; /** * @author Javier Eguiluz */ -final class UrlField implements FieldInterface +final class UrlField implements FieldTraitAwareInterface { use FieldTrait;