Validate that the dependencies of a factory are not cyclical and that the return type of the dependency is a subtype of what's needed.
Validate that the dependencies of a factory are not cyclical and that the return type of the dependency is a subtype of what's needed.