Passed
Pull Request — master (#48)
by Timothy
01:40
created

Module::getConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @author Evgeny Shpilevsky <[email protected]>
4
 */
5
6
namespace EnliteMonolog;
7
8
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
9
use Zend\ModuleManager\Feature\ConfigProviderInterface;
10
11
class Module implements
12
    AutoloaderProviderInterface,
13
    ConfigProviderInterface
14
{
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getAutoloaderConfig()
20
    {
21
        return array(
22
            'Zend\Loader\StandardAutoloader' => array(
23
                'namespaces' => array(
24
                    __NAMESPACE__ => __DIR__ . '/../../src/' . __NAMESPACE__,
25
                ),
26
            )
27
        );
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getConfig()
34
    {
35
        return include __DIR__ . "/../../config/module.config.php";
36
    }
37
}
38