Feature Request: dependencies container
| From: | 3u93n3 | Date: | Mon, 03 Aug 2020 03:31:50 +0000 |
| Subject: | Feature Request: dependencies container | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-111290@lists.php.net to get a copy of this message | ||
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 automatically. Configuration we define in separate class, and
pass it's instance into function-helper.
More verbose explanation in attached file: