Notificato
class Notificato implements LoggerAwareInterface
Methods
Notificato constructor
Create an APNS Certificate
Create a Message builder
Sets a logger instance on the object.
Details
at line 28
__construct(string|null $pemFile = null, string|null $passphrase = null, boolean $validate = true, string|null $endpointEnv = null)
Notificato constructor
at line 46
Certificate
createCertificate(string $pemFile, string|null $passphrase = null, boolean $validate = true, string|null $endpointEnv = null)
Create an APNS Certificate
at line 56
MessageBuilder
messageBuilder()
Create a Message builder
at line 73
MessageEnvelope
queue(Message $message)
Queue a message on the correct APNS gateway connection
at line 83
flush(Certificate $certificate = null)
Send all queued messages
at line 95
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 106
array
receiveFeedback(Certificate $certificate = null)
Receive the feedback tuples from APNS
at line 120
setSender(Sender $sender)
Sets the sender to use.
Note: The given sender will get the logger used by this Notificato object
at line 132
setLogger(LoggerInterface $logger)
Sets a logger instance on the object.
Note: The sender is automaticly updated with this logger
at line 149
setCertificateFactory(CertificateFactory $certificateFactory)
Sets the certificate factory to use.
Note: If you set a certificate factory you are responsible for setting the correct default certificate. Note: The FeedbackFactory and MessageFactory are automaticly updated with the given CertificateFactory.
at line 165
setFeedbackFactory(FeedbackFactory $feedbackFactory)
Sets the feedback factory to use.
Note: The certificate factory is automaticly set to the factory used by this Notificato object