Renamed the DocCMiddleware.Configuration type in the library target as DocCConfiguration.

This commit is contained in:
2025-09-29 02:18:15 +02:00
parent 2c4083c0e3
commit 27d1d3b59f
4 changed files with 57 additions and 62 deletions
@@ -46,9 +46,6 @@ public struct DocCMiddleware<FileSystemProvider: FileProvider> {
// MARK: Properties
/// A type that contains the parameters to configure the middleware.
let configuration: Configuration
/// A type that conforms to a protocol that defines file system interactions.
let fileProvider: FileSystemProvider
@@ -74,7 +71,7 @@ public struct DocCMiddleware<FileSystemProvider: FileProvider> {
/// - configuration: A type that contains the parameters to configure the middleware.
/// - logger: A type that interacts with the logging system.
public init(
configuration: Configuration,
configuration: DocCConfiguration,
logger: Logger
) where FileSystemProvider == LocalFileSystem {
self.init(
@@ -94,12 +91,11 @@ public struct DocCMiddleware<FileSystemProvider: FileProvider> {
/// - fileProvider: A type that conforms to the protocol that defines file system interactions.
/// - logger: A type that interacts with the logging system.
init(
configuration: Configuration,
configuration: DocCConfiguration,
fileProvider: FileSystemProvider,
logger: Logger,
) {
self.logger = logger
self.configuration = configuration
self.fileProvider = fileProvider
self.prepareURIPath = .init(uriRoot: configuration.uriRoot)
self.redirectURI = .init(logger: logger)