Skip to content

Stashbox v5.16.0

Latest
Compare
Choose a tag to compare
@z4kn4fein z4kn4fein released this 21 Aug 12:49

Added

  • #165: A new Override type that provides more control over dependency overrides. Usage:
    var service = container.Resolve<IService>([ Override.Of(instance, "name") ]);
  • WithExceptionOverEmptyCollection() container configuration option to control whether the container should return an empty collection or throw a ResolutionFailedException when a collection of services is requested but the wrapped service type is not resolvable.

Changed

  • The .Configure() and .RegisterResolver() methods now return with the actual IStashboxContainer to allow a fluent call chain.