newInstance()
newInstance(mixed $name, array $params) : object | null
Forces retrieval of a discrete instance of the given class, using the constructor parameters provided.
mixed
Class name or service alias
array
Parameters to pass to the constructor
object
null