|
static | get (string $id) |
| Finds an entry of the container by its identifier and returns it.
|
|
static | get_container () |
| Get the DI Container.
|
|
static | reset_container () |
| Reset the DI Container.
|
|
static | set (string $id, mixed $value) |
| Set an entry in the container by its identifier.
|
|
◆ create_container()
static core\di::create_container |
( |
| ) |
|
|
staticprotected |
Create a new Container Instance.
- Return values
-
◆ get()
static core\di::get |
( |
string | $id | ) |
|
|
static |
Finds an entry of the container by its identifier and returns it.
This is a shortcut helper for core\di\get_container()->get($id).
- Parameters
-
string | $id | Identifier of the entry to look for. |
- Return values
-
◆ get_container()
static core\di::get_container |
( |
| ) |
|
|
static |
Get the DI Container.
- Return values
-
◆ reset_container()
static core\di::reset_container |
( |
| ) |
|
|
static |
Reset the DI Container.
This is primarily intended for Unit Testing, and for use in Scheduled tasks.
◆ set()
static core\di::set |
( |
string | $id, |
|
|
mixed | $value ) |
|
static |
Set an entry in the container by its identifier.
- Parameters
-
string | $id | Identifier of the entry to set |
mixed | $value | The value to set |
The documentation for this class was generated from the following file: