Interface ServiceListenerInterface

Summary

Fully Qualified Name: Zend\ModuleManager\Listener\ServiceListenerInterface
Extends: ListenerAggregateInterface

Description

Methods

Name Description Defined By
addServiceManager() Provide metadata describing how to aggregate service/plugin manager configuration. ServiceListenerInterface
attach() Attach one or more listeners ListenerAggregateInterface
detach() Detach all previously attached listeners ListenerAggregateInterface
setDefaultServiceConfig() ServiceListenerInterface

Method Details

addServiceManager()

Provide metadata describing how to aggregate service/plugin manager configuration.

Parameter Name Type Description
$serviceManager string Service
$key string Configuration
$moduleInterface string FQCN
$method string Method

Returns:

attach()

Attach one or more listeners

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameter Name Type Description
$events \EventManagerInterface
$priority int

Returns: void

detach()

Detach all previously attached listeners

Parameter Name Type Description
$events \EventManagerInterface

Returns: void

setDefaultServiceConfig()

Parameter Name Type Description
$configuration array

Returns: \ServiceListenerInterface

Top