CreatesMercureDrivers
trait CreatesMercureDrivers
Constants
| protected DEFAULT_MERCURE_ALGORITHM |
|
Methods
Create an instance of the driver.
Get a Mercure hub instance for the given configuration.
Determine if the given event only targets Mercure connections publishing synchronously.
Identify the shared HTTP-client pool for construction and invalidation.
Get the subscriber token (and cookie) lifetime in whole seconds.
Get the subscriber token factory for the given Mercure configuration.
Add configured claims and resolve the default audience when a token is minted.
Get the end-to-end channel encrypter for the given Mercure configuration.
Get the additional JWT claims for the publisher side of the given Mercure configuration.
Get the JWT secret for the given side ("subscribe" or "publish") of the given Mercure configuration.
Get the additional JWT claims for the given Mercure configuration.
Details
at line 30
protected Broadcaster
createMercureDriver(array $config)
Create an instance of the driver.
at line 64
HubInterface
mercure(array $config)
Get a Mercure hub instance for the given configuration.
at line 113
protected bool
broadcastsToSynchronousMercureConnections(mixed $event)
Determine if the given event only targets Mercure connections publishing synchronously.
at line 136
protected PoolDefinition
mercurePoolDefinition(array $config)
Identify the shared HTTP-client pool for construction and invalidation.
at line 144
protected int
mercureSubscribeExpiration(array $config)
Get the subscriber token (and cookie) lifetime in whole seconds.
at line 152
protected TokenFactoryInterface|null
mercureSubscribeFactory(array $config)
Get the subscriber token factory for the given Mercure configuration.
at line 177
protected TokenFactoryInterface
mercureTokenFactory(TokenFactoryInterface $factory, array $claims, array $config)
Add configured claims and resolve the default audience when a token is minted.
at line 196
protected ChannelEncrypter|null
mercureChannelEncrypter(array $config)
Get the end-to-end channel encrypter for the given Mercure configuration.
at line 220
protected array
mercurePublishClaims(array $config)
Get the additional JWT claims for the publisher side of the given Mercure configuration.
at line 232
protected string
mercureSecret(array $config, string $side)
Get the JWT secret for the given side ("subscribe" or "publish") of the given Mercure configuration.
at line 263
protected array
mercureClaims(array $config)
Get the additional JWT claims for the given Mercure configuration.