Zend\ServiceManager\AbstractPluginManager::setService
Register a service with the locator.
Validates that the service object via validatePlugin() prior to attempting to register it.
Signature
public function setService(string
$name,
[mixed
$service = true,
[bool
$shared = true]] )
Parameters
$name
— string$service
— mixed$shared
— object
Returns
- AbstractPluginManager