Teemu Grönqvist
Teemu Grönqvist
Indeed, it only injects the first module: https://i.imgur.com/BANmom5.png
I would like to start working on this, but I don't feel so accustomed to PHP-DI internals yet. Do you have any tips @mnapoli for me? Where should I start?...
@mnapoli Don't know if you noticed, but I added pull request for this functionality. Can you check if it's of an okay quality? Would like some feedback
With the patch provided, the following should be possible: ```PHP MyClass::class => DI\autowire() ->constructorParameter(0, 'foo') ->constructorParameter(1, 'bar') ->constructorParameter(2, 'baz') ->constructorParameter(3, 'etc') ``` if the signature is something like this: ```PHP...
You could do it this way (with the patch merged): ```PHP class MyClass { public function __construct(Foo $foo, Bar $bar, Baz $baz, string ...$args) {} } MyClass::class => DI\autowire() ->constructorParameter(3,...
Our closed source project / website is making heavy use of PHP-DI. But I think you are only looking for open source projects to include on the page?
Thank you for your feedback, I have fixed the formatting now
Times have changed and Bountysource doesn't seem very trustworthy. Is there some other way I can post a bounty for this feature or donate towards it?