| Fully Qualified Name: | Zend\ModuleManager\ModuleManagerInterface |
| Extends: | EventManagerAwareInterface |
Module manager interface
| Name | Description | Defined By |
|---|---|---|
| getEventManager() | Retrieve the event manager | EventsCapableInterface |
| getLoadedModules() | Get an array of the loaded modules. | ModuleManagerInterface |
| getModules() | Get the array of module names that this manager should load. | ModuleManagerInterface |
| loadModule() | Load a specific module by name. | ModuleManagerInterface |
| loadModules() | Load the provided modules. | ModuleManagerInterface |
| setEventManager() | Inject an EventManager instance | EventManagerAwareInterface |
| setModules() | Set an array or Traversable of module names that this module manager should load. | ModuleManagerInterface |
Retrieve the event manager
Lazy-loads an EventManager instance if none registered.
Returns: \EventManagerInterface
Get an array of the loaded modules.
| Parameter Name | Type | Description |
|---|---|---|
| $loadModules | bool | If |
Returns: array An array of Module objects, keyed by module name
Get the array of module names that this manager should load.
Returns: array
Load a specific module by name.
| Parameter Name | Type | Description |
|---|---|---|
| $moduleName | string |
Returns: mixed Module's Module class
Load the provided modules.
Returns: \ModuleManagerInterface
Inject an EventManager instance
| Parameter Name | Type | Description |
|---|---|---|
| $eventManager | \EventManagerInterface |
Returns: void
Set an array or Traversable of module names that this module manager should load.
| Parameter Name | Type | Description |
|---|---|---|
| $modules | mixed | array |
Returns: \ModuleManagerInterface