Skip to content

Commit cb8fa69

Browse files
author
Alexis Lefebvre
committed
Fix imports in BookAttributeNormalizer
1 parent f14f2cd commit cb8fa69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/serialization.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ namespace App\Serializer;
450450
451451
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
452452
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
453+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
453454
use Symfony\Component\Serializer\SerializerAwareInterface;
454455
use Symfony\Component\Serializer\SerializerAwareTrait;
455456
@@ -495,7 +496,7 @@ class BookAttributeNormalizer implements ContextAwareNormalizerInterface, Serial
495496
private function passOn($object, $format = null, array $context = [])
496497
{
497498
if (!$this->serializer instanceof NormalizerInterface) {
498-
throw new LogicException(sprintf('Cannot normalize object "%s" because the injected serializer is not a normalizer', $object));
499+
throw new \LogicException(sprintf('Cannot normalize object "%s" because the injected serializer is not a normalizer', $object));
499500
}
500501
501502
$context[self::BOOK_ATTRIBUTE_NORMALIZER_ALREADY_CALLED] = true;

0 commit comments

Comments
 (0)