Open juliangut opened 7 years ago
Agreed, will look into this.
I was never really pleased with the repetition, but did not find a 'nice' solution. The benefit before should have been less typing, but use-statements are still growing.
In this setup the use-statements will be less, however the typing contains more repetition (needing to type 'Factory' everywhere).
Not saying I'm not open to this change, just giving some motivation why I did not implement something better yet :) But as I said, I will look into getting rid of the verbosity.
Needing to write
is tedious AND bloated (even with PHP7 syntax) a factory instead would be an improvement and let you choose whichever method you like