Guides
Tutorials
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
}
public __construct(Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Mercure\HubRegistry $registry)
public __construct(Symfony\Component\Routing\RequestContext $requestContext, Symfony\Component\Mercure\HubRegistry $registry)
requestContext | Symfony\Component\Routing\RequestContext | |
registry | Symfony\Component\Mercure\HubRegistry |
public generateTopicIri(string $subscriptionId): string
public generateTopicIri(string $subscriptionId): string
subscriptionId | string |
string
public generateMercureUrl(string $subscriptionId, null|string $hub): string
public generateMercureUrl(string $subscriptionId, null|string $hub): string
subscriptionId | string | |
hub | string |
string