Guides
Tutorials
UriVariables converter that chains uri variables transformers.
class ApiPlatform\Api\UriVariablesConverter implements `<a href="/docs/reference/Api/UriVariablesConverterInterface">ApiPlatform\Api\UriVariablesConverterInterface</a>`
{
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, iterable $uriVariableTransformers)
public convert(array $uriVariables, string $class, array $context): array
}
class ApiPlatform\Api\UriVariablesConverter implements `<a href="/docs/reference/Api/UriVariablesConverterInterface">ApiPlatform\Api\UriVariablesConverterInterface</a>`
{
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, iterable $uriVariableTransformers)
public convert(array $uriVariables, string $class, array $context): array
}
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, iterable $uriVariableTransformers)
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, iterable $uriVariableTransformers)
propertyMetadataFactory | ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface | |
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
uriVariableTransformers | iterable |
Takes an array of strings representing URI variables (identifiers) and transform their values to the expected type.
public convert(array $uriVariables, string $class, array $context): array
public convert(array $uriVariables, string $class, array $context): array
uriVariables | array | |
class | string | |
context | array |
array