Loader of class instances based on dependency structure defined in an XML configuration file.
package |
Default |
---|
__construct(\Dotpay\Loader\Parser|null $current = null, \Dotpay\Loader\Parser|null $default = null)
findObject(string $name) : object
Throws |
|
---|
string
A class name or an alias of an object
object
get(string $name, array $params = array()) : object|null
string
A class name or an alias of an object which is returned
array
Set of params which is used to an initialization
object|null
getObjectInstance(object $object, array $params = array()) : object|null
object
The Object instance which describes returned object
array
The param list
object|null
initialize(\Dotpay\Loader\Parser|null $current = null, \Dotpay\Loader\Parser|null $default = null)
load(\Dotpay\Loader\Parser|null $current = null, \Dotpay\Loader\Parser|null $default = null) : \Dotpay\Loader\Loader
object(string $className, array $params = array(), string|null $alias = null) : object
string
The class name of the object
array
The arameter list
string|null
The alias of the object
object
parameter(string $name, mixed $value) : object
Return the Object whose value has been set.
Throws |
|
---|
string
A name of the parameter, which is composed of a class name and a parameter name, separated by ":" character
mixed
A value of the parameter
object
set(string $className, object $object, string|null $alias = null) : object
Return the Object which represents the given object.
string
Class name of the given object
object
The object which is set
string|null
Alias of the given object
object
unload()
updateObjects(array $objects)
array
A set of new objects
instance : \Dotpay\Loader\Loader|null
objects : array
var |
List of Object elements which can contain instantiated objects. Keys are class names |
---|
array
aliases : array
var |
List of Object elements which can contain instantiated objects. Keys are aliases |
---|
array