Create simple aggregator #745
Labels
⚙️ component: Pioneer
Issues about Pioneer own things (e.g. utils)
🚦 status: in discussion
📖 theme: extensions
🏗️ type: new feature
While working on #742, I had an idea for a simple ArgumentAggregator. Imagine if you could write the following test:
So I created #744, which does exactly that. 😊 It comes with a couple stipulations but it covers the basic use case: you have an object with a constructor and some arguments (same order) and you want to create an object from them.
I'm not sure this has any merit as it's very simple to either use
ArgumentAccessor
or write your ownParameterResolver
or evenArgumentsAggregator
instead. Thoughts?// P.S.: This is a rather trivial thing both to think of and to write so let me know if this already exists somewhere - I did not look.
The text was updated successfully, but these errors were encountered: