Sets up a dependency injection container for the project, to enable better isolation in unit tests
- Class name: DI
- Namespace: NPR\One\DI
\DI\Container NPR\One\DI\DI::container()
Returns a dependency injection container for the project, creating one if it does not already exist.
- Visibility: public
- This method is static.