Passed
Pull Request — master (#2)
by Alex
02:45
created

Module::getModuleDependencies()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arp\LaminasDoctrine;
6
7
use Laminas\ModuleManager\Feature\DependencyIndicatorInterface;
8
9
/**
10
 * @author  Alex Patterson <[email protected]>
11
 * @package Arp\LaminasDoctrine
12
 */
13
final class Module implements DependencyIndicatorInterface
14
{
15
    /**
16
     * @return array
17
     */
18
    public function getModuleDependencies(): array
19
    {
20
        return [
21
            'Arp\\LaminasDateTime',
22
            'Arp\\LaminasDoctrine\\Query',
23
            'Arp\\LaminasSymfonyConsole',
24
        ];
25
    }
26
27
    /**
28
     * Return the module configuration array.
29
     *
30
     * @return array
31
     */
32
    public function getConfig(): array
33
    {
34
        return array_replace_recursive(
35
            require __DIR__ . '/../config/doctrine.config.php',
36
            require __DIR__ . '/../config/console.config.php',
37
            require __DIR__ . '/../config/module.config.php'
38
        );
39
    }
40
}
41