Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Always interpret closures as factories #487
When a factory is at the root of the definition array, it is automatically interpreted as a factory (
However it's not the case if the closure is in an array or an object parameter.
We could simplify the behavior and always consider a closure as a factory. If a user wants to really inject a closure,