PHP Class ApiPlatform\Core\JsonLd\ContextBuilder

Author: Kévin Dunglas ([email protected])
Inheritance: implements ContextBuilderInterface
Afficher le fichier Open project: api-platform/core Class Usage Examples

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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 méthode

public getBaseContext ( integer $referenceType = UrlGeneratorInterface::ABS_URL ) : array
$referenceType integer
Résultat array

getEntrypointContext() public méthode

public getEntrypointContext ( integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : array
$referenceType integer
Résultat array

getResourceContext() public méthode

public getResourceContext ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : array
$resourceClass string
$referenceType integer
Résultat array

getResourceContextUri() public méthode

public getResourceContextUri ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
$resourceClass string
$referenceType integer
Résultat string