Closed frederikbosch closed 5 years ago
This is related to #147 , right?
Right
It can be used for all kinds of cases.
$di->setters
into one place.$object->setMethod($arg1, $arg2);
.The first three are indeed also possible through a factory. The latter is the provider functionality I requested in #147.
Hey @frederikbosch ,
I think you want to merge 4.x branch to yours. Else the same commits are showing in the diff which makes things hard for review.
I will rebase and update the PR.
Done the rebase.
@harikt I added some more docs and changed mutate
in __invoke
. Hopefully things are a little more clear now.
I am good with the changes.
@frederikbosch I hope you ok with waiting a bit for anyone else who love to review code.
Sure, who would you like to review the code? Maybe we can add them as reviewers in this PR.
@harikt Is there anything I can do to get this merged?
No. Let us merge it.
Adds a new feature. Allows class to be mutated after initialization. It can be seen as an abstracter method to modify the object after initialization compared to setters.