\Yesf\DIContainer

Summary

Methods
Properties
Constants
getInstance()
set()
setMulti()
has()
get()
No public properties found
MULTI_CLONE
MULTI_NEW
No protected methods found
No protected properties found
N/A
__construct()
$instance
$getter
$multi
$creating
$_instance
N/A

Constants

MULTI_CLONE

MULTI_CLONE = 1

MULTI_NEW

MULTI_NEW = 2

Properties

$instance

$instance : array

Type

array — Storage all created beans

$getter

$getter : array

Type

array — Alias names and Closure creaters

$multi

$multi : array

Type

array — Multi beans

$creating

$creating : array

Type

array — Creating beans, for cyclic dependency check

$_instance

$_instance : 

Type

Methods

getInstance()

getInstance() 

set()

set(string  $id1, mixed  $id2) 

Set alias or closure creaters

Parameters

string $id1

ID

mixed $id2

setMulti()

setMulti(string  $id, integer  $type = self::MULTI_CLONE) 

Set alias or closure creaters

Parameters

string $id

ID

integer $type

has()

has(string  $id) : boolean

Has

Parameters

string $id

Returns

boolean

get()

get(string  $id) : object

Get

Parameters

string $id

Returns

object

__construct()

__construct()