Completed
Push — master ( 5a0e22...3dcaa1 )
by Thomas Mauro
02:54
created

Module::getConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 10
cts 10
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PamiModule;
4
5
/**
6
 * Class Module.
7
 */
8
class Module
9
{
10
    /**
11
     * Provide configuration for an application integrating PamiModule.
12
     *
13
     * @return array
14
     */
15 5
    public function getConfig()
16
    {
17 5
        $provider = new ConfigProvider();
18
19
        return [
20
            'pami_module' => [
21 5
                'connection' => [],
22 5
                'client' => [],
23 5
            ],
24
            'pami_module_factories' => [
25 5
                'connection' => Service\ConnectionFactory::class,
26 5
                'client' => Service\ClientFactory::class,
27 5
            ],
28 5
            'service_manager' => $provider->getDependencyConfig(),
29 5
        ];
30
    }
31
}
32