Normalizes the API entrypoint.
class ApiPlatform\JsonApi\Serializer\EntrypointNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, ApiPlatform\Serializer\CacheableSupportsMethodInterface
{
public __construct($resourceMetadataFactory, `<a href="/docs/main/references/Api/IriConverterInterface">ApiPlatform\Metadata\IriConverterInterface</a>`|`<a href="/docs/main/references/Api/IriConverterInterface">ApiPlatform\Api\IriConverterInterface</a>` $iriConverter, `<a href="/docs/main/references/Api/UrlGeneratorInterface">ApiPlatform\Metadata\UrlGeneratorInterface</a>`|`<a href="/docs/main/references/Api/UrlGeneratorInterface">ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsNormalization($data, null|string $format, array $context): bool
public getSupportedTypes($format): array
public hasCacheableSupportsMethod(): bool
}
public __construct($resourceMetadataFactory, `<a href="/docs/main/references/Api/IriConverterInterface">ApiPlatform\Metadata\IriConverterInterface</a>`|`<a href="/docs/main/references/Api/IriConverterInterface">ApiPlatform\Api\IriConverterInterface</a>` $iriConverter, `<a href="/docs/main/references/Api/UrlGeneratorInterface">ApiPlatform\Metadata\UrlGeneratorInterface</a>`|`<a href="/docs/main/references/Api/UrlGeneratorInterface">ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
Normalizes an object into a set of arrays/scalars.
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 normalization by this normalizer.
public supportsNormalization($data, null|string $format, array $context): bool
data | ||
format | string | |
context | array |
bool
public getSupportedTypes($format): array
format |
array
public hasCacheableSupportsMethod(): bool
bool
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more