DI
in package
Dependency Injection
Provides a access to configured DI container instance. Addition makeContainer() method allows for container customisation when unit testing.
Table of Contents
Properties
- $container : mixed
Methods
- getContainer() : Container
- Get DI container instance
- makeContainer() : Container
- Make new DI container instance
Properties
$container
private
static mixed
$container
= null
Methods
getContainer()
Get DI container instance
public
static getContainer() : Container
Singleton pattern.
Return values
ContainermakeContainer()
Make new DI container instance
public
static makeContainer() : Container