ObjectHydrator icon indicating copy to clipboard operation
ObjectHydrator copied to clipboard

Improve DefaultCasterRepository and DefaultSerializerRepository constructor

Open axlon opened this issue 1 year ago • 0 comments

This fixes a very minor pet peeve I have with these two classes;

  • The caster repository's casters cannot be passed to its constructor
  • The serializer repository's serializers parameter is required

This means that if you build them from scratch you cannot use them in the same way, e.g.

$casters = new DefaultCasterRepository();
$serializers = new DefaultSerializerRepository();

...

axlon avatar Jul 02 '24 10:07 axlon