Class Swift_DependencyContainer
Dependency Injection container.
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/DependencyContainer.php
public
|
#
__construct( )
Constructor should not be used.
Use |
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
|
#
asValue( mixed $value )
Specify the previously registered item as a literal value.
|
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. This method takes an array of lookup names. |
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
Constant for literal value types |
#
0x0001
|
integer |
TYPE_INSTANCE
Constant for new instance types |
#
0x0010
|
integer |
TYPE_SHARED
Constant for shared instance types |
#
0x0100
|
integer |
TYPE_ALIAS
Constant for aliases |
#
0x1000
|
private static
|
$_instance
Singleton instance |
#
null
|
private
array
|
$_store
The data container |
#
array()
|
private
|
$_endPoint
The current endpoint in the data container |