Service locator interface

category Zend
package Zend_ServiceManager

 Methods

Retrieve a registered instance

get(string $name) : object | array

Parameters

$name

string

Exceptions

\Zend\ServiceManager\Exception\ServiceNotFoundException

Returns

objectarray

Check for a registered instance

has(string | array $name) : bool

Parameters

$name

stringarray

Returns

bool