File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ extension Enforcer: CoreApi {
422422 return loadPolicy ( )
423423 }
424424
425+ @available ( * , deprecated, renamed: " loadFilteredPolicy(_:) " )
425426 public func loadFilterdPolicy( _ f: Filter ) -> EventLoopFuture < Void > {
426427 model. clearPolicy ( )
427428 return adapter. loadFilteredPolicy ( m: model, f: f) . flatMap {
@@ -433,6 +434,13 @@ extension Enforcer: CoreApi {
433434 return self . eventLoopGroup. next ( ) . makeSucceededVoidFuture ( )
434435 }
435436 }
437+
438+ // Convenience API with correct spelling that forwards to the existing implementation.
439+ // This avoids a source-breaking change to the CoreApi protocol, while offering a
440+ // correctly-named entry point for users.
441+ public func loadFilteredPolicy( _ f: Filter ) -> EventLoopFuture < Void > {
442+ self . loadFilterdPolicy ( f)
443+ }
436444
437445 public var isEnabled : Bool {
438446 self . enabled
@@ -494,4 +502,3 @@ extension Enforcer: CoreApi {
494502 autoBuildRoleLinks
495503 }
496504}
497-
You can’t perform that action at this time.
0 commit comments