References ContextAction
Reference
C
Class

ApiPlatform\JsonLd\Action\ContextAction

Generates JSON-LD contexts.

Methods

__construct

Parameters

contextBuilder`ApiPlatform\JsonLd\ContextBuilderInterface`
resourceNameCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface`
resourceMetadataCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
provider`ApiPlatform\State\ProviderInterface`
processor`ApiPlatform\State\ProcessorInterface`
serializerSymfony\Component\Serializer\SerializerInterface

__invoke

Generates a context according to the type requested.

public __invoke(string $shortName, null|Symfony\Component\HttpFoundation\Request $request): array|Symfony\Component\HttpFoundation\Response

Parameters

shortNamestring
requestSymfony\Component\HttpFoundation\Request

Returns

array
Symfony\Component\HttpFoundation\Response

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop