PHP 클래스 ApiPlatform\Core\Hydra\Serializer\DocumentationNormalizer

저자: Kévin Dunglas ([email protected])
상속: implements Symfony\Component\Serializer\Normalizer\NormalizerInterface
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\Api\OperationMethodResolverInterface $operationMethodResolver, ApiPlatform\Core\Api\UrlGeneratorInterface $urlGenerator )
normalize ( $object, $format = null, array $context = [] )
supportsNormalization ( $data, $format = null, array $context = [] )

비공개 메소드들

메소드 설명
computeDoc ( Documentation $object, array $classes ) : array Computes the documentation.
getClass ( string $resourceClass, ResourceMetadata $resourceMetadata, string $shortName, string $prefixedShortName ) : array Gets a Hydra class.
getClasses ( array $entrypointProperties, array $classes ) : array Builds the classes array.
getContext ( ) : array Builds the JSON-LD context for the API documentation.
getHydraOperation ( string $resourceClass, ResourceMetadata $resourceMetadata, string $operationName, array $operation, string $prefixedShortName, boolean $collection ) : array Gets and populates if applicable a Hydra operation.
getHydraOperations ( string $resourceClass, ResourceMetadata $resourceMetadata, string $prefixedShortName, boolean $collection ) : array Gets Hydra operations.
getHydraProperties ( string $resourceClass, ResourceMetadata $resourceMetadata, string $shortName, string $prefixedShortName ) : array Gets Hydra properties.
getProperty ( PropertyMetadata $propertyMetadata, string $propertyName, string $prefixedShortName, string $shortName ) : array Gets a property definition.
getPropertyNameCollectionFactoryContext ( ResourceMetadata $resourceMetadata ) : array Gets the context for the property name factory.
getRange ( PropertyMetadata $propertyMetadata ) : string | null Gets the range of the property.
populateEntrypointProperties ( string $resourceClass, ResourceMetadata $resourceMetadata, string $shortName, string $prefixedShortName, array &$entrypointProperties ) Populates entrypoint properties.

메소드 상세

__construct() 공개 메소드

public __construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Core\Api\OperationMethodResolverInterface $operationMethodResolver, ApiPlatform\Core\Api\UrlGeneratorInterface $urlGenerator )
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$propertyNameCollectionFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface
$propertyMetadataFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
$resourceClassResolver ApiPlatform\Core\Api\ResourceClassResolverInterface
$operationMethodResolver ApiPlatform\Core\Api\OperationMethodResolverInterface
$urlGenerator ApiPlatform\Core\Api\UrlGeneratorInterface

normalize() 공개 메소드

public normalize ( $object, $format = null, array $context = [] )
$context array

supportsNormalization() 공개 메소드

public supportsNormalization ( $data, $format = null, array $context = [] )
$context array