File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Symfony/Component/Messenger/Transport/Serialization Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 21
21
use Symfony \Component \Serializer \Encoder \XmlEncoder ;
22
22
use Symfony \Component \Serializer \Exception \ExceptionInterface ;
23
23
use Symfony \Component \Serializer \Normalizer \ArrayDenormalizer ;
24
+ use Symfony \Component \Serializer \Normalizer \DateTimeNormalizer ;
24
25
use Symfony \Component \Serializer \Normalizer \ObjectNormalizer ;
25
26
use Symfony \Component \Serializer \Serializer as SymfonySerializer ;
26
27
use Symfony \Component \Serializer \SerializerInterface as SymfonySerializerInterface ;
@@ -50,7 +51,7 @@ public static function create(): self
50
51
}
51
52
52
53
$ encoders = [new XmlEncoder (), new JsonEncoder ()];
53
- $ normalizers = [new ArrayDenormalizer (), new ObjectNormalizer ()];
54
+ $ normalizers = [new DateTimeNormalizer (), new ArrayDenormalizer (), new ObjectNormalizer ()];
54
55
$ serializer = new SymfonySerializer ($ normalizers , $ encoders );
55
56
56
57
return new self ($ serializer );
You can’t perform that action at this time.
0 commit comments