Guides
Tutorials
Manages all the queried subscriptions by creating their ID and saving to a cache the information needed to publish updated data.
class ApiPlatform\GraphQl\Subscription\SubscriptionManager implements `<a href="/docs/reference/GraphQl/Subscription/SubscriptionManagerInterface">ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface</a>`
{
public __construct(Psr\Cache\CacheItemPoolInterface $subscriptionsCache, ApiPlatform\GraphQl\Subscription\SubscriptionIdentifierGeneratorInterface $subscriptionIdentifierGenerator, ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface $serializeStage, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public retrieveSubscriptionId(array $context, null|array $result): string
public getPushPayloads(object $object): array
}
class ApiPlatform\GraphQl\Subscription\SubscriptionManager implements `<a href="/docs/reference/GraphQl/Subscription/SubscriptionManagerInterface">ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface</a>`
{
public __construct(Psr\Cache\CacheItemPoolInterface $subscriptionsCache, ApiPlatform\GraphQl\Subscription\SubscriptionIdentifierGeneratorInterface $subscriptionIdentifierGenerator, ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface $serializeStage, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public retrieveSubscriptionId(array $context, null|array $result): string
public getPushPayloads(object $object): array
}
public __construct(Psr\Cache\CacheItemPoolInterface $subscriptionsCache, ApiPlatform\GraphQl\Subscription\SubscriptionIdentifierGeneratorInterface $subscriptionIdentifierGenerator, ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface $serializeStage, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public __construct(Psr\Cache\CacheItemPoolInterface $subscriptionsCache, ApiPlatform\GraphQl\Subscription\SubscriptionIdentifierGeneratorInterface $subscriptionIdentifierGenerator, ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface $serializeStage, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
subscriptionsCache | Psr\Cache\CacheItemPoolInterface | |
subscriptionIdentifierGenerator | ApiPlatform\GraphQl\Subscription\SubscriptionIdentifierGeneratorInterface | |
serializeStage | ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface | |
iriConverter | ApiPlatform\Api\IriConverterInterface | |
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface |
public retrieveSubscriptionId(array $context, null|array $result): string
public retrieveSubscriptionId(array $context, null|array $result): string
context | array | |
result | array |
string
public getPushPayloads(object $object): array
public getPushPayloads(object $object): array
object | object |
array