From 5577147e4e7e8dc321a12b462bc08bdd7403d1e5 Mon Sep 17 00:00:00 2001 From: tomer doron Date: Wed, 17 Mar 2021 17:12:50 -0700 Subject: [PATCH] make the underlying component lifecycle private again (#91) * make the underlying component lifecycle private again motivation: there is no need to explose the underlying component lifecycle, since there are better composition solutions changets: make ServiceLifecycle::underlying private (again) * fixup --- Sources/Lifecycle/Lifecycle.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/Lifecycle/Lifecycle.swift b/Sources/Lifecycle/Lifecycle.swift index 5fd973d..2af5ae7 100644 --- a/Sources/Lifecycle/Lifecycle.swift +++ b/Sources/Lifecycle/Lifecycle.swift @@ -187,10 +187,7 @@ public struct ServiceLifecycle { private let configuration: Configuration /// The underlying `ComponentLifecycle` instance - /// - /// Designed for composition purposes, mainly for frameworks that need to offer both top-level start/stop functionality and composition into larger systems. - /// In other words, should not be used outside the context of building an Application framework. - public let underlying: ComponentLifecycle + private let underlying: ComponentLifecycle /// Creates a `ServiceLifecycle` instance. ///