Closed orangevinz closed 2 months ago
Hello, Thanks for the issue.
But injected arguments are private and don't have getters, which obliges me to re-declare constructor.
This is how decoration is supposed to work. If we change from private to protected, we'll have to support this "public-ish" API forever.
So the way to go it to require what you need in your own constructor. More over, with Symfony it's super easy :)
I hope you understand the rational.
Thanks for Elastically !
As I'd like to implement my own pattern for indice names (in place of
date('Y-m-d-His')
), so I guess decoratingIndexBuilder
is the right way to do that. But injected arguments are private and don't have getters, which obliges me to re-declare constructor. Would it be a good idea to add getters in the IndexBuilder class ? I can write a PR if you estimate that's the good practice.To be able to do
Instead of