Class Swift_DependencyContainer
Dependency Injection container.
Package: Swift
Author: Chris Corbyn
Located at wa-system/vendors/swift/classes/Swift/DependencyContainer.php
Author: Chris Corbyn
Located at wa-system/vendors/swift/classes/Swift/DependencyContainer.php
public
|
|
public static
|
|
public
array
|
|
public
boolean
|
|
public
mixed
|
|
public
array
|
#
createDependenciesFor( string $itemName )
Create an array of arguments passed to the constructor of $itemName. |
public
|
|
public
|
|
public
|
|
public
|
#
asNewInstanceOf( string $className )
Specify the previously registered item as a new instance of $className. |
public
|
#
asSharedInstanceOf( string $className )
Specify the previously registered item as a shared instance of $className. |
public
|
#
withDependencies( array $lookups )
Specify a list of injected dependencies for the previously registered item. |
public
|
#
addConstructorValue( mixed $value )
Specify a literal (non looked up) value for the constructor of the previously registered item. |
public
|
#
addConstructorLookup( string $lookup )
Specify a dependency lookup for the constructor of the previously registered item. |
private
|
|
private
|
|
private
|
|
private
|
|
private
&
|
|
private
|
|
private
|
integer |
TYPE_VALUE
|
0x0001 |
#
Constant for literal value types |
integer |
TYPE_INSTANCE
|
0x0010 |
#
Constant for new instance types |
integer |
TYPE_SHARED
|
0x0100 |
#
Constant for shared instance types |
integer |
TYPE_ALIAS
|
0x1000 |
#
Constant for aliases |
private static
mixed
|
$_instance | null |
#
Singleton instance |
private
array
|
$_store | array() |
#
The data container |
private
mixed
|
$_endPoint |
|
#
The current endpoint in the data container |