367. Function

367.1. Zend\Di\newInstance

ZendDinewInstance()

Retrieve a new instance of a class

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

Parameters:
  • mixed – Class name or service alias
  • array – Parameters to pass to the constructor
Return type:

object|null

Project Versions

Table Of Contents

Previous topic

366. Class

Next topic

368. Class

This Page