Zend\Di\Di::get
Lazy-load a class
Attempts to load the class (or service alias) provided. If it has been loaded before, the previous instance will be returned (unless the service definition indicates shared instances should not be used).
Signature
public function get(string
$name,
array
$params )
Parameters
$name
— string- Class name or service alias
$params
— array- Parameters to pass to the constructor
Returns
- object|null