Open guibranco opened 3 days ago
Click the checkbox below to generate a PR!
@guibranco, You have 5 requests left in this cycle which refreshes on 2024-11-21 10:07:38+00:00. If you have any questions or concerns, please contact us at info@gitauto.ai.
Description: I would like to enhance the DI Container in the Pancake project to support auto-registration for services that are not explicitly registered in the container. This auto-registration feature should be enabled by default but configurable via a flag. Additionally, the container should be able to automatically resolve all dependencies, including constructor dependencies, for services that are auto-registered.
Related to #235
Below is an updated code example for the DIContainer class illustrating the requested functionality:
Updated DIContainer Example
New Features:
Auto-Registration of Services:
setAutoRegisterEnabled
method.Dependency Resolution:
Example of Auto-Registration:
Task Requirements:
Additional Requirements:
Acceptance Criteria: