Implement a DateTimeInterface Handler for JMSSerializer
While working on an API today I realized the JMSSerializer does not support neither DateTimeInteface nor DateTimeImmutable. I am going to walk you through the necessary steps to serialize DateTimeImmutable
objects using JMSSerializer.