Module::getServiceConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Pgs\ElasticOM\Bridge\ZF3;
4
5
use Pgs\ElasticOM\EntityRepositoryManager;
6
7
class Module
8
{
9
    const CONFIG_KEY = 'elastic_om';
10
11 1
    public function getServiceConfig()
12
    {
13
        return [
14
            'factories' => [
15
                EntityRepositoryManager::class => EntityRepositoryManagerFactory::class,
16 1
            ],
17
            'aliases' => [
18
                'elastic_om.entity_repository_manager' => EntityRepositoryManager::class,
19
            ],
20
        ];
21
    }
22
}
23