package Default

 Methods

__construct()

__construct(\Zend\ServiceManager\ServiceManager $serviceManager, null|array $configuration = null

Parameters

$serviceManager

\Zend\ServiceManager\ServiceManager

$configuration

nullarray

addServiceManager()

addServiceManager(\Zend\ServiceManager\ServiceManager|string $serviceManager, string $key, string $moduleInterface, string $method) : \Zend\ModuleManager\Listener\ServiceListener
inherited_from \Zend\ModuleManager\Listener\ServiceListenerInterface::addServiceManager()

Parameters

$serviceManager

\Zend\ServiceManager\ServiceManagerstring

Service Manager instance or name

$key

string

Configuration key

$moduleInterface

string

FQCN as string

$method

string

Method name

Exceptions

\Zend\ModuleManager\Listener\Exception\RuntimeException

Returns

\Zend\ModuleManager\Listener\ServiceListener

attach()

attach(\Zend\EventManager\EventManagerInterface $events) : \Zend\ModuleManager\Listener\ServiceListener

Parameters

$events

\Zend\EventManager\EventManagerInterface

Returns

\Zend\ModuleManager\Listener\ServiceListener

detach()

detach(\Zend\EventManager\EventManagerInterface $events) : void

Parameters

$events

\Zend\EventManager\EventManagerInterface

Retrieve service manager configuration from module, and configure the service manager.

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.

Parameters

$e

\Zend\ModuleManager\ModuleEvent

Use merged configuration to configure service manager

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.

Parameters

$e

\Zend\ModuleManager\ModuleEvent

Exceptions

\Zend\ModuleManager\Listener\Exception\RuntimeException

setDefaultServiceConfig()

setDefaultServiceConfig(array $configuration) : \Zend\ModuleManager\Listener\ServiceListener
inherited_from \Zend\ModuleManager\Listener\ServiceListenerInterface::setDefaultServiceConfig()

Parameters

$configuration

array

Returns

\Zend\ModuleManager\Listener\ServiceListener

Merge a service configuration container

serviceConfigToArray(\Zend\ServiceManager\Config|string $config) : array

Extracts the various service configuration arrays, and then merges with the internal service configuration.

Parameters

$config

\Zend\ServiceManager\Configstring

Instance of ServiceConfig or class name

Exceptions

\Zend\ModuleManager\Listener\Exception\RuntimeException

Returns

array

 Properties

 

$defaultServiceConfig

$defaultServiceConfig : array

Default

 

Default service manager used to fulfill other SMs that need to be lazy loaded

$defaultServiceManager : \Zend\ServiceManager\ServiceManager

Default

 

$listeners

$listeners : array<mixed,\Zend\Stdlib\CallbackHandler>

Default

array()
 

$serviceManagers

$serviceManagers : array

Default

array()