[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ -> DependencyContainer.php (summary)

(no description)

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

Defines 1 class

Swift_DependencyContainer:: (22 methods):
  __construct()
  getInstance()
  listItems()
  has()
  lookup()
  createDependenciesFor()
  register()
  asValue()
  asAliasOf()
  asNewInstanceOf()
  asSharedInstanceOf()
  asArray()
  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: self

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: $this

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: $this

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

param: string $lookup
return: $this

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: $this

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: $this

asArray()   X-Ref
Specify the previously registered item as array of dependencies.

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

return: $this

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

This method takes an array of lookup names.

return: $this

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

param: mixed $value
return: $this

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

param: string $lookup
return: $this

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: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1