Container
in package
implements
ContainerInterface
FinalYes
Table of Contents
Interfaces
- ContainerInterface
Properties
- $factories : array<string, Closure>
- $instances : array<string, mixed>
Methods
- get() : mixed
- has() : bool
- set() : void
- autowire() : object
- resolveParameter() : mixed
Properties
$factories
private
array<string, Closure>
$factories
= []
$instances
private
array<string, mixed>
$instances
= []
Methods
get()
public
get(string $id) : mixed
Parameters
- $id : string
Tags
has()
public
has(string $id) : bool
Parameters
- $id : string
Return values
boolset()
public
set(string $id, Closure $factory) : void
Parameters
- $id : string
- $factory : Closure
autowire()
private
autowire(string $class) : object
Parameters
- $class : string
Tags
Return values
objectresolveParameter()
private
resolveParameter(ReflectionParameter $param) : mixed
Parameters
- $param : ReflectionParameter