Zend\Di\DependencyInjectionInterface::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 )
Parameters
$name
— mixed- Class name or service alias
$params
— array- Parameters to pass to the constructor
Returns
- object|null