Reference
C
Class

ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGenerator

Generates Mercure-related IRIs from a subscription ID.

class ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGenerator implements `<a href="/docs/reference/GraphQl/Subscription/MercureSubscriptionIriGeneratorInterface">ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface</a>`
{
    public __construct(Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Mercure\HubRegistry $registry)
    public generateTopicIri(string $subscriptionId): string
    public generateMercureUrl(string $subscriptionId, null|string $hub): string
}
class ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGenerator implements `<a href="/docs/reference/GraphQl/Subscription/MercureSubscriptionIriGeneratorInterface">ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface</a>`
{
    public __construct(Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Mercure\HubRegistry $registry)
    public generateTopicIri(string $subscriptionId): string
    public generateMercureUrl(string $subscriptionId, null|string $hub): string
}

Methods

__construct

public __construct(Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Mercure\HubRegistry $registry)
public __construct(Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Mercure\HubRegistry $registry)

Parameters

requestContextSymfony\Component\Routing\RequestContext
registrySymfony\Component\Mercure\HubRegistry

generateTopicIri

public generateTopicIri(string $subscriptionId): string
public generateTopicIri(string $subscriptionId): string

Parameters

subscriptionIdstring

Returns

string

generateMercureUrl

public generateMercureUrl(string $subscriptionId, null|string $hub): string
public generateMercureUrl(string $subscriptionId, null|string $hub): string

Parameters

subscriptionIdstring
hubstring

Returns

string

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop