[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/ -> DependencyContainer.php (summary)

(no description)

File Size: 373 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Swift_DependencyContainer:: (21 methods):
  __construct()
  getInstance()
  listItems()
  has()
  lookup()
  createDependenciesFor()
  register()
  asValue()
  asAliasOf()
  asNewInstanceOf()
  asSharedInstanceOf()
  withDependencies()
  addConstructorValue()
  addConstructorLookup()
  _getValue()
  _createAlias()
  _createNewInstance()
  _createSharedInstance()
  _getEndPoint()
  _resolveArgs()
  _lookupRecursive()


Class: Swift_DependencyContainer  - X-Ref

Dependency Injection container.

__construct()   X-Ref
Constructor should not be used.

Use {@link getInstance()} instead.

getInstance()   X-Ref
Returns a singleton of the DependencyContainer.

return: Swift_DependencyContainer

listItems()   X-Ref
List the names of all items stored in the Container.

return: array

has($itemName)   X-Ref
Test if an item is registered in this container with the given name.

param: string $itemName
return: bool

lookup($itemName)   X-Ref
Lookup the item with the given $itemName.

param: string $itemName
return: mixed

createDependenciesFor($itemName)   X-Ref
Create an array of arguments passed to the constructor of $itemName.

param: string $itemName
return: array

register($itemName)   X-Ref
Register a new dependency with $itemName.

This method returns the current DependencyContainer instance because it
requires the use of the fluid interface to set the specific details for the
dependency.

param: string $itemName
return: Swift_DependencyContainer

asValue($value)   X-Ref
Specify the previously registered item as a literal value.

{@link register()} must be called before this will work.

param: mixed $value
return: Swift_DependencyContainer

asAliasOf($lookup)   X-Ref
Specify the previously registered item as an alias of another item.

param: string $lookup
return: Swift_DependencyContainer

asNewInstanceOf($className)   X-Ref
Specify the previously registered item as a new instance of $className.

{@link register()} must be called before this will work.
Any arguments can be set with {@link withDependencies()},
{@link addConstructorValue()} or {@link addConstructorLookup()}.

param: string $className
return: Swift_DependencyContainer

asSharedInstanceOf($className)   X-Ref
Specify the previously registered item as a shared instance of $className.

{@link register()} must be called before this will work.

param: string $className
return: Swift_DependencyContainer

withDependencies(array $lookups)   X-Ref
Specify a list of injected dependencies for the previously registered item.

This method takes an array of lookup names.

param: array $lookups
return: Swift_DependencyContainer

addConstructorValue($value)   X-Ref
Specify a literal (non looked up) value for the constructor of the
previously registered item.

param: mixed $value
return: Swift_DependencyContainer

addConstructorLookup($lookup)   X-Ref
Specify a dependency lookup for the constructor of the previously
registered item.

param: string $lookup
return: Swift_DependencyContainer

_getValue($itemName)   X-Ref
No description

_createAlias($itemName)   X-Ref
No description

_createNewInstance($itemName)   X-Ref
No description

_createSharedInstance($itemName)   X-Ref
No description

_getEndPoint()   X-Ref
No description

_resolveArgs(array $args)   X-Ref
No description

_lookupRecursive($item)   X-Ref
No description



Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1