메소드 |
설명 |
|
__construct ( ) |
Constructor should not be used. |
|
addConstructorLookup ( string $lookup ) : Swift_DependencyContainer |
Specify a dependency lookup for the constructor of the previously
registered item. |
|
addConstructorValue ( mixed $value ) : Swift_DependencyContainer |
Specify a literal (non looked up) value for the constructor of the
previously registered item. |
|
asAliasOf ( string $lookup ) : Swift_DependencyContainer |
Specify the previously registered item as an alias of another item. |
|
asNewInstanceOf ( string $className ) : Swift_DependencyContainer |
Specify the previously registered item as a new instance of $className. |
|
asSharedInstanceOf ( string $className ) : Swift_DependencyContainer |
Specify the previously registered item as a shared instance of $className. |
|
asValue ( mixed $value ) : Swift_DependencyContainer |
Specify the previously registered item as a literal value. |
|
createDependenciesFor ( string $itemName ) : array |
Create an array of arguments passed to the constructor of $itemName. |
|
getInstance ( ) : Swift_DependencyContainer |
Returns a singleton of the DependencyContainer. |
|
has ( string $itemName ) : boolean |
Test if an item is registered in this container with the given name. |
|
listItems ( ) : array |
List the names of all items stored in the Container. |
|
lookup ( string $itemName ) : mixed |
Lookup the item with the given $itemName. |
|
register ( string $itemName ) : Swift_DependencyContainer |
Register a new dependency with $itemName. |
|
withDependencies ( array $lookups ) : Swift_DependencyContainer |
Specify a list of injected dependencies for the previously registered item. |
|