class MercureService (View source)

An object-oriented wrapper for working with Channel objects with the Symfony Mercure service.

Properties

protected JsonSerializer $serializer
protected Repository $config
protected Application $app
protected PublisherInterface $publisher
protected ResolverManagerInterface $urlResolver

Methods

__construct(JsonSerializer $serializer, Application $app, Repository $config, ResolverManagerInterface $urlResolver)

No description

bool
isEnabled()

No description

string
getPublisherUrl()

No description

PublisherInterface
getPublisher()

No description

void
sendUpdate(EventInterface $event)

No description

Details

__construct(JsonSerializer $serializer, Application $app, Repository $config, ResolverManagerInterface $urlResolver)

No description

Parameters

JsonSerializer $serializer
Application $app
Repository $config
ResolverManagerInterface $urlResolver

bool isEnabled()

No description

Return Value

bool

string getPublisherUrl()

No description

Return Value

string

PublisherInterface getPublisher()

No description

Return Value

PublisherInterface

void sendUpdate(EventInterface $event)

No description

Parameters

EventInterface $event

Return Value

void