zio.FunctionToLayerSyntax
Converts this function to a Layer that depends upon its inputs.
case class FooLive(config: Config) extends Foo val live: URLayer[Config, Foo] = FooLive.toLayer