ConfigProvider::getDependencyConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PamiModule;
4
5
use Zend\ServiceManager\Factory\InvokableFactory;
6
7
/**
8
 * Class ConfigProvider.
9
 */
10
class ConfigProvider
11
{
12
    /**
13
     * Provide dependency configuration for an application integrating i18n.
14
     *
15
     * @return array
16
     */
17 1
    public function __invoke()
18
    {
19
        return [
20 1
            'dependencies' => $this->getDependencyConfig(),
21 1
        ];
22
    }
23
    /**
24
     * Provide dependency configuration for an application integrating i18n.
25
     *
26
     * @return array
27
     */
28 6
    public function getDependencyConfig()
29
    {
30
        return [
31
            'factories' => [
32 6
                Listener\ConnectionStatusListener::class => InvokableFactory::class,
33 6
            ],
34
            'abstract_factories' => [
35 6
                Factory\AbstractPamiServiceFactory::class,
36 6
            ],
37
            'shared' => [
38 6
                Listener\ConnectionStatusListener::class => false,
39 6
            ],
40 6
        ];
41
    }
42
}
43