Skip to content

[FEATURE]: DI container for controllers #71

Description

@NikSimDev

Feature Category

Developer experience

Problem Statement

Currently, controllers are created manually:

auto userController = std::make_shared<UserController>();

This does not scale well.

Proposed Solution

Add a simple DI:

  • singleton registry
  • scoped services
  • auto‑wiring through templates

API Design

Alternative Solutions

No response

Use Case

No response

Impact and Scope

No response

Contribution

  • I would like to implement this feature
  • I need guidance on implementation
  • I can help with testing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions