category Zend
package Zend_Di

 Methods

Retrieve a new instance of a class

newInstance(mixed $name, array $params) : object | null

Forces retrieval of a discrete instance of the given class, using the constructor parameters provided.

Parameters

$name

mixed

Class name or service alias

$params

array

Parameters to pass to the constructor

Returns

objectnull