20use Psr\Log\LoggerAwareInterface;
21use Psr\Log\LoggerInterface;
22use Psr\Log\NullLogger;
39 $this->logger =
new NullLogger();
47 final public function notify( $channel, $event ) {
48 return $this->
doNotify( $channel, [ $event ] );
57 return $this->
doNotify( $channel, $events );
69 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)