Open hexus opened 9 years ago
There is also a bug whereby the order of associative arguments given to newInstanceArgs()
or invokeWithArgs()
matters (because associate arrays do have an order), and of course the keys must match the parameter names (which they do already).
Right now,
Darya\Service\Container::mergeResolvedParameters()
is begging for a smart implementation that merges user-provided arguments with those resolved from the container.This will likely take into account numeric indexes of user-provided arguments and possibly the types of the resolved arguments.