Completed
Push — master ( 5f97ad...5a0e22 )
by Thomas Mauro
09:11
created

Module::getAutoloaderConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 5
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
    public function getConfig()
16
    {
17
        $provider = new ConfigProvider();
18
19
        return [
20
            'pami_module' => [
21
                'connection' => [],
22
                'client' => [],
23
            ],
24
            'pami_module_factories' => [
25
                'connection' => Service\ConnectionFactory::class,
26
                'client' => Service\ClientFactory::class,
27
            ],
28
            'service_manager' => $provider->getDependencyConfig(),
29
        ];
30
    }
31
}
32