Closed
Description
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