@@ -8,7 +8,7 @@ import SnapshotTestingPlugin
88/// The `PluginRegistry` automatically discovers and registers classes conforming to the `SnapshotTestingPlugin` protocol
99/// within the Objective-C runtime. It allows retrieval of specific plugins by identifier, access to all registered plugins,
1010/// and filtering of plugins that conform to the `ImageSerialization` protocol.
11- public class PluginRegistry {
11+ class PluginRegistry {
1212
1313 /// Shared singleton instance of `PluginRegistry`.
1414 private static let shared = PluginRegistry ( )
@@ -23,27 +23,27 @@ public class PluginRegistry {
2323 defer { automaticPluginRegistration ( ) }
2424 }
2525
26- // MARK: - Public Methods
26+ // MARK: - Internal Methods
2727
2828 /// Registers a plugin.
2929 ///
3030 /// - Parameter plugin: An instance conforming to `SnapshotTestingPlugin`.
31- public static func registerPlugin( _ plugin: any SnapshotTestingPlugin ) {
31+ static func registerPlugin( _ plugin: any SnapshotTestingPlugin ) {
3232 PluginRegistry . shared. registerPlugin ( plugin)
3333 }
3434
3535 /// Retrieves a plugin by its identifier, casting it to the specified type.
3636 ///
3737 /// - Parameter identifier: The unique identifier for the plugin.
3838 /// - Returns: The plugin instance cast to `Output` if found and castable, otherwise `nil`.
39- public static func plugin< Output> ( for identifier: String ) -> Output ? {
39+ static func plugin< Output> ( for identifier: String ) -> Output ? {
4040 PluginRegistry . shared. plugin ( for: identifier)
4141 }
4242
4343 /// Returns all registered plugins cast to the specified type.
4444 ///
4545 /// - Returns: An array of all registered plugins that can be cast to `Output`.
46- public static func allPlugins< Output> ( ) -> [ Output ] {
46+ static func allPlugins< Output> ( ) -> [ Output ] {
4747 PluginRegistry . shared. allPlugins ( )
4848 }
4949
0 commit comments