PHP 클래스 ApiPlatform\Core\JsonLd\ContextBuilder

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

공개 메소드들

메소드 설명
__construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\Api\UrlGeneratorInterface $urlGenerator, Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = null )
getBaseContext ( integer $referenceType = UrlGeneratorInterface::ABS_URL ) : array
getEntrypointContext ( integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : array
getResourceContext ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : array
getResourceContextUri ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\Api\UrlGeneratorInterface $urlGenerator, Symfony\Component\Serializer\NameConverter\NameConverterInterface $nameConverter = null )
$resourceNameCollectionFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface
$propertyNameCollectionFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface
$propertyMetadataFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
$urlGenerator ApiPlatform\Core\Api\UrlGeneratorInterface
$nameConverter Symfony\Component\Serializer\NameConverter\NameConverterInterface

getBaseContext() 공개 메소드

public getBaseContext ( integer $referenceType = UrlGeneratorInterface::ABS_URL ) : array
$referenceType integer
리턴 array

getEntrypointContext() 공개 메소드

public getEntrypointContext ( integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : array
$referenceType integer
리턴 array

getResourceContext() 공개 메소드

public getResourceContext ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : array
$resourceClass string
$referenceType integer
리턴 array

getResourceContextUri() 공개 메소드

public getResourceContextUri ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
$resourceClass string
$referenceType integer
리턴 string