PHP Class ApiPlatform\Core\JsonLd\ContextBuilder

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

Public Methods

Method 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 method

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 method

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

getEntrypointContext() public method

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

getResourceContext() public method

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

getResourceContextUri() public method

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