FeatureFlags: Use interface rather than manager (#80000)

This commit is contained in:
Ryan McKinley authored and GitHub committed 2024-01-09 10:38:06 -08:00
1 parent e550829dae
commit 1caaa56de0
48 files changed
+125 -143

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ import (
)
func NewAccessControlAPI(router routing.RouteRegister, accesscontrol ac.AccessControl, service ac.Service,
features *featuremgmt.FeatureManager) *AccessControlAPI {
features featuremgmt.FeatureToggles) *AccessControlAPI {
return &AccessControlAPI{
RouteRegister: router,
Service: service,
@@ -28,7 +28,7 @@ type AccessControlAPI struct {
Service ac.Service
AccessControl ac.AccessControl
RouteRegister routing.RouteRegister
features *featuremgmt.FeatureManager
features featuremgmt.FeatureToggles
}
func (api *AccessControlAPI) RegisterAPIEndpoints() {