ConfigInterface
in
Table of Contents
- configureServiceManager() : ServiceManager
- Configure a service manager.
- toArray() : array<string|int, mixed>
- Return configuration for a service manager instance as an array.
Methods
configureServiceManager()
Configure a service manager.
public
configureServiceManager(ServiceManager $serviceManager) : ServiceManager
Implementations should pull configuration from somewhere (typically local properties) and pass it to a ServiceManager's withConfig() method, returning a new instance.
Parameters
- $serviceManager : ServiceManager
Return values
ServiceManager —toArray()
Return configuration for a service manager instance as an array.
public
toArray() : array<string|int, mixed>
Implementations MUST return an array compatible with ServiceManager::configure, containing one or more of the following keys:
- abstract_factories
- aliases
- delegators
- factories
- initializers
- invokables
- lazy_services
- services
- shared
In other words, this should return configuration that can be used to instantiate
a service manager or plugin manager, or pass to its withConfig()
method.