$this->serializers =
[ IdFieldSerializer::
class => new IdFieldSerializer($this->validator,
$this),
FkFieldSerializer::
class => new FkFieldSerializer($this->validator,
$this),
StringFieldSerializer::
class => new StringFieldSerializer($this->validator,
$this,
new HtmlSanitizer()),
IntFieldSerializer::
class => new IntFieldSerializer($this->validator,
$this),
FloatFieldSerializer::
class => new FloatFieldSerializer($this->validator,
$this),
BoolFieldSerializer::
class => new BoolFieldSerializer($this->validator,
$this),
JsonFieldSerializer::
class => new JsonFieldSerializer($this->validator,
$this),
CreatedAtFieldSerializer::
class => new CreatedAtFieldSerializer($this->validator,
$this),
UpdatedAtFieldSerializer::
class => new UpdatedAtFieldSerializer($this->validator,
$this),
CustomFieldsSerializer::
class => new CustomFieldsSerializer( $this,
$this->validator,
new CustomFieldService(new FakeConnection([['foo', 'int'
]])) ),
ManyToManyAssociationFieldSerializer::
class => new ManyToManyAssociationFieldSerializer( new WriteCommandExtractor($this->entityWriteGateway
),
),
ManyToOneAssociationFieldSerializer::
class => new ManyToOneAssociationFieldSerializer( new WriteCommandExtractor($this->entityWriteGateway
),
),
OneToManyAssociationFieldSerializer::
class => new OneToManyAssociationFieldSerializer(