Re: [PHP-DEV] Feature Request: dependencies container

2020-08-02 Thread Marco Pivetta
Re-writing with the internals ML in CC On Mon, Aug 3, 2020, 06:16 3u93n3 wrote: > > 2. Setter injection (as well as property injection, and also the > proposed `__inject`) leads to temporal coupling smells. Explained > otherwise, your object instances are not "functioning" right after > instanti

Re: [PHP-DEV] Feature Request: dependencies container

2020-08-02 Thread Marco Pivetta
Heya, On Mon, Aug 3, 2020, 05:32 3u93n3 wrote: > The main idea is to take control over objects creation and injecting > dependencies. > > 1. Some of them are provided through constructor (those, which could only > be retrieved right before instantiating our object). > 2. Others are provided thro

[PHP-DEV] Feature Request: dependencies container

2020-08-02 Thread 3u93n3
The main idea is to take control over objects creation and injecting dependencies. 1. Some of them are provided through constructor (those, which could only be retrieved right before instantiating our object). 2. Others are provided through `__inject` and PHP will inject all those dependencies aut