This repository was archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathModuleManagerInterface.php
More file actions
54 lines (47 loc) · 1.45 KB
/
ModuleManagerInterface.php
File metadata and controls
54 lines (47 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* @link https://github.com/zendframework/zend-modulemanager for the canonical source repository
* @copyright Copyright (c) 2005-2019 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/zend-modulemanager/blob/master/LICENSE.md New BSD License
*/
namespace Zend\ModuleManager;
use Zend\EventManager\EventManagerAwareInterface;
/**
* Module manager interface
*/
interface ModuleManagerInterface extends EventManagerAwareInterface
{
/**
* Load the provided modules.
*
* @return ModuleManagerInterface
*/
public function loadModules();
/**
* Load a specific module by name.
*
* @param string $moduleName
* @return mixed Module's Module class
*/
public function loadModule($moduleName);
/**
* Get an array of the loaded modules.
*
* @param bool $loadModules If true, load modules if they're not already
* @return array An array of Module objects, keyed by module name
*/
public function getLoadedModules($loadModules);
/**
* Get the array of module names that this manager should load.
*
* @return array
*/
public function getModules();
/**
* Set an array or Traversable of module names that this module manager should load.
*
* @param mixed $modules array or Traversable of module names
* @return ModuleManagerInterface
*/
public function setModules($modules);
}