Guides
Tutorials
Decorates the output with JSON HAL metadata when appropriate, but otherwise just passes through to the decorated normalizer.
class ApiPlatform\Hal\Serializer\ObjectNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\DenormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter)
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsDenormalization($data, string $type, null|string $format, array $context): bool
public denormalize($data, string $type, null|string $format, array $context)
}
class ApiPlatform\Hal\Serializer\ObjectNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\DenormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter)
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsDenormalization($data, string $type, null|string $format, array $context): bool
public denormalize($data, string $type, null|string $format, array $context)
}
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter)
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated, ApiPlatform\Api\IriConverterInterface $iriConverter)
decorated | Symfony\Component\Serializer\Normalizer\NormalizerInterface | |
iriConverter | ApiPlatform\Api\IriConverterInterface |
Checks whether the given class is supported for normalization by this normalizer.
public supportsNormalization($data, null|string $format, array $context): bool
public supportsNormalization($data, null|string $format, array $context): bool
data | ||
format | string | |
context | array |
bool
public hasCacheableSupportsMethod(): bool
public hasCacheableSupportsMethod(): bool
bool
Normalizes an object into a set of arrays/scalars.
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
object | ||
format | string | |
context | array |
ArrayObject
array
string
int
float
bool
Checks whether the given class is supported for denormalization by this normalizer.
public supportsDenormalization($data, string $type, null|string $format, array $context): bool
public supportsDenormalization($data, string $type, null|string $format, array $context): bool
data | ||
type | string | |
format | string | |
context | array |
bool
Denormalizes data back into an object of the given class.
public denormalize($data, string $type, null|string $format, array $context)
public denormalize($data, string $type, null|string $format, array $context)
data | ||
type | string | |
format | string | |
context | array |