Module manager interface

package Default
inherited_from \Zend\EventManager\EventManagerAwareInterface

 Methods

Get an array of the loaded modules.

getLoadedModules(boolean $loadModules) : array

Parameters

$loadModules

boolean

If true, load modules if they're not already

Returns

arrayAn array of Module objects, keyed by module name

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

getModules() : array

Returns

array

Load a specific module by name.

loadModule(string $moduleName) : mixed

Parameters

$moduleName

string

Returns

mixedModule's Module class

Load the provided modules.

loadModules() : \Zend\ModuleManager\ModuleManagerInterface

Returns

\Zend\ModuleManager\ModuleManagerInterface

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

setModules(mixed $modules) : \Zend\ModuleManager\ModuleManagerInterface

Parameters

$modules

mixed

array or Traversable of module names

Returns

\Zend\ModuleManager\ModuleManagerInterface