Skip to content

Latest commit

 

History

History
34 lines (12 loc) · 422 Bytes

NPR-One-DI-DI.md

File metadata and controls

34 lines (12 loc) · 422 Bytes

NPR\One\DI\DI

Sets up a dependency injection container for the project, to enable better isolation in unit tests

  • Class name: DI
  • Namespace: NPR\One\DI

Methods

container

\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.