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

ConfigProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 33
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
A getDependencyConfig() 0 14 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