class MercureService implements LoggerAwareInterface (View source)

Traits

Trait LoggerAwareTrait A trait used with LoggerAwareInterface

LoggerAwareTrait

Properties

protected Repository $config
protected Application $app
protected Hub $hub
protected Subscriber $subscriber

Methods

getLoggerChannel()

No description

__construct(Application $app, Repository $config)

No description

bool
isEnabled()

No description

string
getPublisherUrl()

No description

Hub
getHub()

No description

publish(ServerEventInterface $event)

Wrapper for getting the hub directly and publishing an update. Useful for ensuring Mercure doesn't raise undue errors.

getSubscriber()

No description

Details

getLoggerChannel()

No description

__construct(Application $app, Repository $config)

No description

Parameters

Application $app
Repository $config

bool isEnabled()

No description

Return Value

bool

string getPublisherUrl()

No description

Return Value

string

Hub getHub()

No description

Return Value

Hub

publish(ServerEventInterface $event)

Wrapper for getting the hub directly and publishing an update. Useful for ensuring Mercure doesn't raise undue errors.

Parameters

ServerEventInterface $event

Subscriber getSubscriber()

No description

Return Value

Subscriber