Zend Framework
2.4
|
Public Member Functions | |
newInstance ($name, array $params=array()) | |
Retrieve a new instance of a class. | |
![]() | |
get ($name, array $params=array()) | |
Retrieve a class instance. | |
newInstance | ( | $name, | |
array | $params = array() |
||
) |
Retrieve a new instance of a class.
Forces retrieval of a discrete instance of the given class, using the constructor parameters provided.
mixed | $name | Class name or service alias |
array | $params | Parameters to pass to the constructor |