Module::getModuleDependencies()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/form-comparator
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\FormComparator;
7
8
9
use Zend\ModuleManager\Feature\ConfigProviderInterface;
10
use Zend\ModuleManager\Feature\DependencyIndicatorInterface;
11
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
12
use Nnx\ModuleOptions\Module as ModuleOptions;
13
14
/**
15
 * Class Module
16
 *
17
 * @package Nnx\ModuleOptions
18
 */
19
class Module implements
20
    AutoloaderProviderInterface,
21
    ConfigProviderInterface,
22
    DependencyIndicatorInterface
23
{
24
    /**
25
     * Имя секции в конфиги приложения отвечающей за настройки модуля
26
     *
27
     * @var string
28
     */
29
    const CONFIG_KEY = 'nnx_form-comparator';
30
31
    /**
32
     * Имя модуля
33
     *
34
     * @var string
35
     */
36
    const MODULE_NAME = __NAMESPACE__;
37
38
    /**
39
     * @return array
40
     */
41
    public function getModuleDependencies()
42
    {
43
        return [
44
            ModuleOptions::MODULE_NAME
45
        ];
46
    }
47
48
    /**
49
     * @return array
50
     */
51
    public function getAutoloaderConfig()
52
    {
53
        return [
54
            'Zend\Loader\StandardAutoloader' => [
55
                'namespaces' => [
56
                    __NAMESPACE__ => __DIR__ . '/src/',
57
                ],
58
            ],
59
        ];
60
    }
61
62
63
    /**
64
     * @inheritdoc
65
     *
66
     * @return array
67
     */
68
    public function getConfig()
69
    {
70
        return array_merge_recursive(
71
            include __DIR__ . '/config/module.config.php',
72
            include __DIR__ . '/config/serviceManager.config.php',
73
            include __DIR__ .'/config/viewManager.config.php'
74
        );
75
    }
76
77
}