References SubscriptionManager
Reference
C
Class

ApiPlatform\GraphQl\Subscription\SubscriptionManager

Manages all the queried subscriptions by creating their ID and saving to a cache the information needed to publish updated data.

Methods

__construct

Parameters

subscriptionsCachePsr\Cache\CacheItemPoolInterface
subscriptionIdentifierGenerator`ApiPlatform\GraphQl\Subscription\SubscriptionIdentifierGeneratorInterface`
serializeStage`ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface`
iriConverter`ApiPlatform\Metadata\IriConverterInterface`
resourceMetadataCollectionFactory`ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface`
normalizeProcessor`ApiPlatform\State\ProcessorInterface`

retrieveSubscriptionId

public retrieveSubscriptionId(array $context, null|array $result, null|ApiPlatform\Metadata\GraphQl\Operation $operation): string

Parameters

contextarray
resultarray
operation`ApiPlatform\Metadata\GraphQl\Operation`

Returns

string

getPushPayloads

public getPushPayloads(object $object): array

Parameters

objectobject

Returns

array

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