__construct()
addServiceManager()
attach()
detach()
onLoadModule()
onLoadModulesPost()
setDefaultServiceConfig()
serviceConfigToArray()
$defaultServiceConfig
$defaultServiceManager
$listeners
$serviceManagers
__construct(\Zend\ServiceManager\ServiceManager $serviceManager, null | array $configuration)
addServiceManager(\Zend\ServiceManager\ServiceManager | string $serviceManager, string $key, string $moduleInterface, string $method) : \Zend\ModuleManager\Listener\ServiceListener
string
Configuration key
string
FQCN as string
string
Method name
\Zend\ModuleManager\Listener\Exception\RuntimeException |
---|
attach(\Zend\EventManager\EventManagerInterface $events) : \Zend\ModuleManager\Listener\ServiceListener
detach(\Zend\EventManager\EventManagerInterface $events) : void
onLoadModule(\Zend\ModuleManager\ModuleEvent $e) : void
If the module does not implement a specific interface and does not implement a specific method, does nothing. Also, if the return value of that method is not a ServiceConfig object, or not an array or Traversable that can seed one, does nothing.
The interface and method name can be set by adding a new service manager via the addServiceManager() method.
onLoadModulesPost(\Zend\ModuleManager\ModuleEvent $e) : void
If the merged configuration has a non-empty, array 'service_manager' key, it will be passed to a ServiceManager Config object, and used to configure the service manager.
\Zend\ModuleManager\Listener\Exception\RuntimeException |
---|
setDefaultServiceConfig(array $configuration) : \Zend\ModuleManager\Listener\ServiceListener
serviceConfigToArray(\Zend\ServiceManager\Config | string $config) : array
Extracts the various service configuration arrays, and then merges with the internal service configuration.
\Zend\ModuleManager\Listener\Exception\RuntimeException |
---|
array
$defaultServiceConfig : array
$defaultServiceManager : \Zend\ServiceManager\ServiceManager
$serviceManagers : array