codacy.events.package.scala Maven / Gradle / Ivy
package codacy
import org.slf4j.Logger
import shapeless.{lazily, Lazy}
package object events extends Events {
type EventLogger = internal.EventLogger
def EventLogger(logger: Logger): EventLogger = internal.EventLogger(logger)
implicit class EventExtension[E <: Event](val event: E) extends AnyVal {
def publish(implicit bus: Lazy[EventBus]) = lazily[EventBus].publish(event)
}
}