Adds the mercure subscription url if available.
class ApiPlatform\GraphQl\State\Processor\SubscriptionProcessor implements ApiPlatform\State\ProcessorInterface
{
public __construct($decorated, `<a href="/docs/main/references/GraphQl/Subscription/SubscriptionManagerInterface">ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface</a>` $subscriptionManager, null|`<a href="/docs/main/references/GraphQl/Subscription/MercureSubscriptionIriGeneratorInterface">ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface $mercureSubscriptionIriGenerator)
public process($data, ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context)
}
public __construct($decorated, `<a href="/docs/main/references/GraphQl/Subscription/SubscriptionManagerInterface">ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface</a>` $subscriptionManager, null|`<a href="/docs/main/references/GraphQl/Subscription/MercureSubscriptionIriGeneratorInterface">ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface $mercureSubscriptionIriGenerator)
decorated | `ApiPlatform\State\ProcessorInterface` | |
subscriptionManager | `ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface` | |
mercureSubscriptionIriGenerator | `ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface` |
public process($data, ApiPlatform\Metadata\Operation $operation, array $uriVariables, array $context)
data | ||
operation | `ApiPlatform\Metadata\Operation` | |
uriVariables | array | |
context | 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