Merges two dependency injection modules into a new (third) one that is returned.
At that m1 and m2 stay unchanged. Therefore, m1 is deep-copied first,
and m2 is merged onto the copy afterwards.
Note that the leaf values of m1 and m2, i.e. the service constructor functions,
cannot be copied generically, since they are functions. They are shared by the source and merged modules.
Merges two dependency injection modules into a new (third) one that is returned. At that
m1
andm2
stay unchanged. Therefore,m1
is deep-copied first, and m2 is merged onto the copy afterwards.Note that the leaf values of
m1
andm2
, i.e. the service constructor functions, cannot be copied generically, since they are functions. They are shared by the source and merged modules.