Skip to content

Dependency Injection / IoC #240

Closed
Closed
@tobeycodes

Description

@tobeycodes

The scaffold currently has a pattern of Modules and a way to initialize these modules. These are useful but they do not allow for dependency injection which makes it harder to write easily testable code.

I think we should replace this in favour of a container and dependency injection. There are several popular packages to do this or we could maintain our own

https://github.com/silexphp/Pimple
https://github.com/PHP-DI/PHP-DI

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions