|
@@ -5,7 +5,7 @@ namespace App\Serializer;
|
|
|
|
|
|
|
|
use App\Entity\Access\Access;
|
|
use App\Entity\Access\Access;
|
|
|
use App\Service\Utils\EntityUtils;
|
|
use App\Service\Utils\EntityUtils;
|
|
|
-use Symfony\Component\Security\Core\Security;
|
|
|
|
|
|
|
+use Symfony\Bundle\SecurityBundle\Security;
|
|
|
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
|
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
|
|
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
|
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
|
|
use Symfony\Component\Serializer\SerializerAwareInterface;
|
|
use Symfony\Component\Serializer\SerializerAwareInterface;
|
|
@@ -27,7 +27,7 @@ final class DefaultNormalizer implements NormalizerInterface, DenormalizerInterf
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function supportsNormalization($data, $format = null): bool
|
|
|
|
|
|
|
+ public function supportsNormalization($data, $format = null, array $context = []): bool
|
|
|
{
|
|
{
|
|
|
return $this->decorated->supportsNormalization($data, $format);
|
|
return $this->decorated->supportsNormalization($data, $format);
|
|
|
}
|
|
}
|
|
@@ -37,7 +37,7 @@ final class DefaultNormalizer implements NormalizerInterface, DenormalizerInterf
|
|
|
return $this->decorated->normalize($object, $format, $context);
|
|
return $this->decorated->normalize($object, $format, $context);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function supportsDenormalization($data, $type, $format = null): bool
|
|
|
|
|
|
|
+ public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
|
|
|
{
|
|
{
|
|
|
return $this->decorated->supportsDenormalization($data, $type, $format);
|
|
return $this->decorated->supportsDenormalization($data, $type, $format);
|
|
|
}
|
|
}
|