20use Psr\Log\LoggerInterface;
21use Psr\Log\LoggerAwareInterface;
22use Psr\Log\NullLogger;
35 $this->logger =
new NullLogger();
43 final public function notify( $channel, $event ) {
44 return $this->
doNotify( $channel, [ $event ] );
53 return $this->
doNotify( $channel, $events );
65 abstract protected function doNotify( $channel, array $events );
Base class for reliable event relays.
setLogger(LoggerInterface $logger)
notify( $channel, $event)
notifyMulti( $channel, $events)
doNotify( $channel, array $events)
__construct(array $params)