Fully Qualified Name: | Zend\Mvc\Service\ServiceListenerFactory |
Implements: | FactoryInterface |
Name | Description | Defined By |
---|---|---|
__invoke() | Create the service listener service | ServiceListenerFactory |
Create the service listener service
Tries to get a service named ServiceListenerInterface from the service locator, otherwise creates a ServiceListener instance, passing it the container instance and the default service configuration, which can be overridden by modules.
It looks for the 'service_listener_options' key in the application config and tries to add service/plugin managers as configured. The value of 'service_listener_options' must be a list (array) which contains the following keys:
Parameter Name | Type | Description |
---|---|---|
$serviceLocator | \ServiceLocatorInterface | |
$container | ||
$requestedName | ||
$options |
Returns: \ServiceListenerInterface