Sender
class Sender implements LoggerAwareInterface
Methods
__construct()
Construct Sender
setGatewayFactory(GatewayFactory $gatewayFactory)
Set the gateway factory to use for creating connections to the APNS gateway
getGatewayFactory()
Get the current gateway factory
setLogger(LoggerInterface $logger)
Sets a logger instance on the object
int
getQueueLength()
Count of all queued messages
Details
at line 18
__construct()
Construct Sender
at line 30
setGatewayFactory(GatewayFactory $gatewayFactory)
Set the gateway factory to use for creating connections to the APNS gateway
at line 40
GatewayFactory
getGatewayFactory()
Get the current gateway factory
at line 50
setLogger(LoggerInterface $logger)
Sets a logger instance on the object
at line 67
MessageEnvelope
send(Message $message)
Queues a message and flushes the gateway connection it must be send over immediately Note: If you send multiple messages, queue as many as possible and flush them at once for maximum performance
at line 84
MessageEnvelope
queue(Message $message)
Queue a message on the correct APNS gateway connection
at line 98
int
getQueueLength()
Count of all queued messages
at line 115
flush(Certificate $certificate = null)
Send all queued messages