From f25d0c40c0179bc74513e16ca5d5e330b0f2d723 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Mon, 1 Oct 2018 14:28:28 +0200 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9Cuse=E2=80=9D=20block=20in=20Book?= =?UTF-8?q?AttributeNormalizer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/serialization.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/serialization.md b/core/serialization.md index 18ba7d41fef..d83d3485d84 100644 --- a/core/serialization.md +++ b/core/serialization.md @@ -448,6 +448,11 @@ Here is an example: namespace App\Serializer; +use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; +use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface; +use Symfony\Component\Serializer\SerializerAwareInterface; +use Symfony\Component\Serializer\SerializerAwareTrait; + class BookAttributeNormalizer implements ContextAwareNormalizerInterface, SerializerAwareInterface { use SerializerAwareTrait;