Guides
Tutorials
Creates a machine readable Hydra API documentation.
class ApiPlatform\Hydra\Serializer\DocumentationNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator, null|Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter)
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
}
class ApiPlatform\Hydra\Serializer\DocumentationNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator, null|Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter)
public normalize($object, null|string $format, array $context): ArrayObject|array|string|int|float|bool
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
}
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator, null|Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter)
public __construct(ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\UrlGeneratorInterface $urlGenerator, null|Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter)
resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
propertyNameCollectionFactory | ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface | |
propertyMetadataFactory | ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface | |
resourceClassResolver | ApiPlatform\Api\ResourceClassResolverInterface | |
urlGenerator | ApiPlatform\Api\UrlGeneratorInterface | |
nameConverter | Symfony\Component\Serializer\NameConverter\NameConverterInterface |
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 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