1211. Class

1211.1. Zend\ModuleManager\ModuleManager

Module manager

1211.1.1. Methods

1211.1.1.1. __construct

__construct()

Constructor

Parameters:
  • array|Traversable
  • EventManagerInterface

1211.1.1.2. onLoadModules

onLoadModules()

Handle the loadModules event

Return type:void

1211.1.1.3. loadModules

loadModules()

Load the provided modules.

Return type:ModuleManager

1211.1.1.4. loadModule

loadModule()

Load a specific module by name.

Parameters:string
Throws ExceptionRuntimeException:
 @triggers loadModule.resolve

@triggers loadModule

rtype:mixed Module’s Module class

1211.1.1.5. getLoadedModules

getLoadedModules()

Get an array of the loaded modules.

Parameters:bool – If true, load modules if they’re not already
Return type:array An array of Module objects, keyed by module name

1211.1.1.6. getModule

getModule()

Get an instance of a module class by the module name

Parameters:string
Return type:mixed

1211.1.1.7. getModules

getModules()

Get the array of module names that this manager should load.

Return type:array

1211.1.1.8. setModules

setModules()

Set an array or Traversable of module names that this module manager should load.

Parameters:mixed – array or Traversable of module names
Throws ExceptionInvalidArgumentException:
 
Return type:ModuleManager

1211.1.1.9. getEvent

getEvent()

Get the module event

Return type:ModuleEvent

1211.1.1.10. setEvent

setEvent()

Set the module event

Parameters:ModuleEvent
Return type:ModuleManager

1211.1.1.11. setEventManager

setEventManager()

Set the event manager instance used by this module manager.

Parameters:EventManagerInterface
Return type:ModuleManager

1211.1.1.12. getEventManager

getEventManager()

Retrieve the event manager

Lazy-loads an EventManager instance if none registered.

Return type:EventManagerInterface

1211.1.1.13. attachDefaultListeners

attachDefaultListeners()

Register the default event listeners

Return type:ModuleManager