Skip to content

Commit

Permalink
Allow access to ServiceEntry properties
Browse files Browse the repository at this point in the history
Container Behaviors receive instances of the `ServiceEntry` in its hook method, but are currently unable to access these properties.
  • Loading branch information
bradfol committed Jan 21, 2025
1 parent 7ef7140 commit e11458e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Swinject/ServiceEntry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ internal protocol ServiceEntryProtocol: AnyObject {
/// As a returned instance from ``Container/register(_:name:factory:)-8gy9r``, some configurations can be added.
public final class ServiceEntry<Service>: ServiceEntryProtocol {
fileprivate var initCompletedActions: [(Resolver, Service) -> Void] = []
internal let serviceType: Any.Type
internal let argumentsType: Any.Type
public let serviceType: Any.Type
public let argumentsType: Any.Type

internal let factory: FunctionType
internal weak var container: Container?
Expand Down

0 comments on commit e11458e

Please sign in to comment.