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

ConfigProvider::getDependencyConfig()   A

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 0
Metric Value
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 9.4285
c 0
b 0
f 0
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 1
    public function getDependencyConfig()
29
    {
30
        return [
31
            'factories' => [
32 1
                Listener\ConnectionStatusListener::class => InvokableFactory::class,
33 1
            ],
34
            'abstract_factories' => [
35 1
                Factory\AbstractPamiServiceFactory::class,
36 1
            ],
37
            'shared' => [
38 1
                Listener\ConnectionStatusListener::class => false,
39 1
            ],
40 1
        ];
41
    }
42
}
43