apex-enterprise-patterns/force-di

di_Binding.Resolver ignores optional bindings when platform cache is off

Closed this issue · 0 comments

In the di_Binding.Resolver.get() method, if the di_PlatformCache.getInstance().retrieveBindings(String, Schema.SObjectType) method does not return matchedBindings and di_Binding.Resolver.bindingsAreRequired is false (which means "empty bindings are allowed"), then the logic from the loadBindings() method is never called.