add encoder
add support Symfony/Serializer interfaces