Zend\Di\Di::newInstance
Retrieve a new instance of a class
Forces retrieval of a discrete instance of the given class, using the constructor parameters provided.
Signature
public function newInstance(mixed
$name,
[array
$params = true,
[bool
$isShared = true]] )
Parameters
$name
— mixed- Class name or service alias
$params
— array- Parameters to pass to the constructor
$isShared
— object
Returns
- object|null