BeforeMessengerDoctrinePingEvent implements StoppableEventInterface
FinalYes
Dispatched by the DoctrinePingConnectionMiddleware before a database connection is pinged (and transparently reconnected) ahead of a worker handling a received message. Listeners may skip the ping for a specific connection, for example when a connection must not be touched between messages.
Table of Contents
Interfaces
- StoppableEventInterface
Methods
- __construct() : mixed
- getConnectionName() : string
- isPropagationStopped() : bool
- shouldSkip() : bool
- skip() : void
Methods
__construct()
public
__construct(string $connectionName) : mixed
Parameters
- $connectionName : string
getConnectionName()
public
getConnectionName() : string
Return values
stringisPropagationStopped()
public
isPropagationStopped() : bool
Return values
boolshouldSkip()
public
shouldSkip() : bool
Return values
boolskip()
public
skip() : void