Module manager interface

 Methods

Get an array of the loaded modules.

getLoadedModules(bool $loadModules) : array

Parameters

$loadModules

bool

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

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