• Lmaydev
    link
    fedilink
    arrow-up
    3
    ·
    8 months ago

    Dependency injection is the actual act of allowing dependencies to be injected. Which this does.

    Creating a constructor that takes dependencies is DI.

    Using something to inject them automatically is more inversion of control.