Guides
Tutorials
Publishes resources updates to the Mercure hub.
class ApiPlatform\Doctrine\EventListener\PublishMercureUpdatesListener
{
public __construct(ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\Serializer\SerializerInterface $serializer, array<string, array<int, string>
string> $formats, null|Symfony\Component\Messenger\MessageBusInterface $messageBus, null|Symfony\Component\Mercure\HubRegistry $hubRegistry, null|ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface $graphQlSubscriptionManager, null|ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface $graphQlMercureSubscriptionIriGenerator, null|Symfony\Component\ExpressionLanguage\ExpressionLanguage $expressionLanguage, bool $includeType)
public onFlush(Doctrine\Common\EventArgs $eventArgs): null
public postFlush(): null
}
class ApiPlatform\Doctrine\EventListener\PublishMercureUpdatesListener
{
public __construct(ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\Serializer\SerializerInterface $serializer, array<string, array<int, string>
string> $formats, null|Symfony\Component\Messenger\MessageBusInterface $messageBus, null|Symfony\Component\Mercure\HubRegistry $hubRegistry, null|ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface $graphQlSubscriptionManager, null|ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface $graphQlMercureSubscriptionIriGenerator, null|Symfony\Component\ExpressionLanguage\ExpressionLanguage $expressionLanguage, bool $includeType)
public onFlush(Doctrine\Common\EventArgs $eventArgs): null
public postFlush(): null
}
public __construct(ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\Serializer\SerializerInterface $serializer, array<string, array<int, string>
string> $formats, null|Symfony\Component\Messenger\MessageBusInterface $messageBus, null|Symfony\Component\Mercure\HubRegistry $hubRegistry, null|ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface $graphQlSubscriptionManager, null|ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface $graphQlMercureSubscriptionIriGenerator, null|Symfony\Component\ExpressionLanguage\ExpressionLanguage $expressionLanguage, bool $includeType)
public __construct(ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver, ApiPlatform\Api\IriConverterInterface $iriConverter, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataFactory, Symfony\Component\Serializer\SerializerInterface $serializer, array<string, array<int, string>
string> $formats, null|Symfony\Component\Messenger\MessageBusInterface $messageBus, null|Symfony\Component\Mercure\HubRegistry $hubRegistry, null|ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface $graphQlSubscriptionManager, null|ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface $graphQlMercureSubscriptionIriGenerator, null|Symfony\Component\ExpressionLanguage\ExpressionLanguage $expressionLanguage, bool $includeType)
resourceClassResolver | ApiPlatform\Api\ResourceClassResolverInterface | |
iriConverter | ApiPlatform\Api\IriConverterInterface | |
resourceMetadataFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
serializer | Symfony\Component\Serializer\SerializerInterface | |
formats | array<string, array<int, string> string> | |
messageBus | Symfony\Component\Messenger\MessageBusInterface | |
hubRegistry | Symfony\Component\Mercure\HubRegistry | |
graphQlSubscriptionManager | ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface | |
graphQlMercureSubscriptionIriGenerator | ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface | |
expressionLanguage | Symfony\Component\ExpressionLanguage\ExpressionLanguage | |
includeType | bool |
Collects created, updated and deleted objects.
public onFlush(Doctrine\Common\EventArgs $eventArgs): null
public onFlush(Doctrine\Common\EventArgs $eventArgs): null
eventArgs | Doctrine\Common\EventArgs |
null
Publishes updates for changes collected on flush, and resets the store.
public postFlush(): null
public postFlush(): null
null