Interface ModuleManagerInterface

Summary

Fully Qualified Name: Laminas\ModuleManager\ModuleManagerInterface
Extends: EventManagerAwareInterface

Description

Module manager interface

Methods

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

Method Details

getEventManager()

Retrieve the event manager

Lazy-loads an EventManager instance if none registered.

Returns: \EventManagerInterface

getLoadedModules()

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

getModules()

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

Returns: array

loadModule()

Load a specific module by name.

Parameter Name Type Description
$moduleName string

Returns: mixed Module's Module class

loadModules()

Load the provided modules.

Returns: \ModuleManagerInterface

setEventManager()

Inject an EventManager instance

Parameter Name Type Description
$eventManager \EventManagerInterface

Returns: void

setModules()

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

Parameter Name Type Description
$modules mixed array

Returns: \ModuleManagerInterface

Top