Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/SwinjectLight/Container.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
#endif
public protocol Resolver: AnyObject {
func resolve<Service>(_ type: Service.Type) -> Service
func resolve<Service, Parameters>(_ type: Service.Type, parameters: Parameters) -> Service
}

public final class Container {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwinjectLightTests/SwinjectLightTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class SwinjectLightTests: XCTestCase {
XCTAssertFalse(localVariable === resolvedDependency)
}

func testSharedInstace() {
func testSharedInstance() {
let container = Container()
let localVariable = MockClass()
container.register(MockDependency.self) { _ in
Expand Down
Loading