You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaring a dependency with the ':call' option, and using this class two times in the same execution process.
Problem
It seems that the declared dependencies are permanently modified as 'call' method is added to them. This ends up in a Injectable::MethodAlreadyExistsException as Injectable is actually checking that the call method does not exist in the dependency when it tries to do the monkey patch.
It seems like when the target is a class, the :call method is being persisted. I'll have to think of a less permanent way of adding that :call aliasing
Context
Declaring a dependency with the ':call' option, and using this class two times in the same execution process.
Problem
It seems that the declared dependencies are permanently modified as 'call' method is added to them. This ends up in a
Injectable::MethodAlreadyExistsException
as Injectable is actually checking that the call method does not exist in the dependency when it tries to do the monkey patch.How to recreate it
The text was updated successfully, but these errors were encountered: