Reference
C
Class

ApiPlatform\Hydra\Serializer\EntrypointNormalizer

Normalizes the API entrypoint.

class ApiPlatform\Hydra\Serializer\EntrypointNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
    public normalize($object, null|string $format, array $context): array
    public supportsNormalization($data, null|string $format, array $context): bool
    public hasCacheableSupportsMethod(): bool
}
class ApiPlatform\Hydra\Serializer\EntrypointNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
    public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
    public normalize($object, null|string $format, array $context): array
    public supportsNormalization($data, null|string $format, array $context): bool
    public hasCacheableSupportsMethod(): bool
}

Methods

__construct

public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator)

Parameters

resourceMetadataFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
iriConverterApiPlatform\Api\IriConverterInterface
urlGeneratorApiPlatform\Api\UrlGeneratorInterface

normalize

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

Parameters

object
formatstring
contextarray

Returns

array

supportsNormalization

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

Parameters

data
formatstring
contextarray

Returns

bool

hasCacheableSupportsMethod

public hasCacheableSupportsMethod(): bool
public hasCacheableSupportsMethod(): bool

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop