Zend Framework
3.0
|
Public Member Functions | |
newInstance ($name, array $params=[]) | |
Retrieve a new instance of a class. | |
newInstance | ( | $name, | |
array | $params = [] |
||
) |
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 |