FailsafeContainer implements ContainerInterface
Table of Contents
Interfaces
- ContainerInterface
Methods
- __construct() : mixed
- Instantiate the container.
- get() : mixed
- has() : bool
Methods
__construct()
Instantiate the container.
public
__construct([iterable<string|int, mixed> $providers = [] ][, array<string|int, mixed> $entries = [] ]) : mixed
Objects and parameters can be passed as argument to the constructor.
Parameters
- $providers : iterable<string|int, mixed> = []
-
The service providers to register.
- $entries : array<string|int, mixed> = []
-
The default parameters or objects.
get()
public
get(string $id) : mixed
Parameters
- $id : string
has()
public
has(string $id) : bool
Parameters
- $id : string