forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModuleListInterface.php
45 lines (41 loc) · 971 Bytes
/
ModuleListInterface.php
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
<?php
/**
* List of active application modules.
*
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Module;
interface ModuleListInterface
{
/**
* Get list of all modules
*
* Returns an array where key is module name and value is an array with module meta-information
*
* @return array
*/
public function getAll();
/**
* Get module declaration data
*
* Returns an array with meta-information about one module by specified name
*
* @param string $name
* @return array|null
*/
public function getOne($name);
/**
* Enumerates the list of names of modules
*
* @return string[]
*/
public function getNames();
/**
* Checks whether the specified module is present in the list
*
* @param string $name
* @return bool
*/
public function has($name);
}