Closed AdithyaReddy closed 6 years ago
Hey @AdithyaReddy, this is not intended use of TyphoonDefinition, there is no way to use classOrProtocolForAutoInjection
with TyphoonDefinition
. Your code looks very custom, so I recommend you learn Typhoon sources and create own TyphoonDefinition subclass with isCandidateForInjectedProtocol
and isCandidateForInjectedClass:includeSubclasses:
methods overridden. See @interface TyphoonDefinition (/* Infrastructure */)
category
Could you please tell me how would I resolve a component-by-type using TyphoonDefinition? Or am I missing something in the TyphoonFactoryDefinition?
And is there a way to access 'classOrProtocolForAutoInjection' in TyphoonDefinition?
Thank you :)