Guides
Tutorials
Normalize runtime exceptions to have the right message in production mode.
class ApiPlatform\GraphQl\Serializer\Exception\RuntimeExceptionNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface
{
public normalize($object, null|string $format, array $context): array
public supportsNormalization($data, null|string $format, array $context): bool
}
class ApiPlatform\GraphQl\Serializer\Exception\RuntimeExceptionNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface
{
public normalize($object, null|string $format, array $context): array
public supportsNormalization($data, null|string $format, array $context): bool
}
Normalizes an object into a set of arrays/scalars.
public normalize($object, null|string $format, array $context): array
public normalize($object, null|string $format, array $context): array
object | ||
format | string | |
context | array |
array
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