Skip to content

alaugks/article-symfony-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a custom Symfony Normalizer for mapping values

A part of article Series: Mapping FieldValueIDs for the payload of the Emarsys API

https://dev.to/elevado/create-a-custom-symfony-normalizer-for-mapping-values-4nc2

  • Example with Serializer default service configuration (Branch)
  • Example with PropertyNormalizer and custom PropertyTypeExtractor (Branch)

Docker image

Start docker image

docker compose -f docker-compose.yml up --build -d

Run composer install

docker exec article_symfony_serializer composer install

Run tests

docker exec article_symfony_serializer bin/phpunit

Open bash

docker exec -it article_symfony_serializer bash

Frontend

Open frontend: http://localhost:8080/