Zend\Di\Di::createInstanceViaConstructor
Retrieve a class instance based on class name
Any parameters provided will be used as constructor arguments. If any given parameter is a DependencyReference object, it will be fetched from the container so that the instance may be injected.
Signature
protected function createInstanceViaConstructor(string
$class,
[array
$params = null,
[string|null
$alias = null]] )
Parameters
$class
— string$params
— array$alias
— object