Module::getConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * MtMail - e-mail module for Zend Framework
4
 *
5
 * @link      http://github.com/mtymek/MtMail
6
 * @copyright Copyright (c) 2013-2017 Mateusz Tymek
7
 * @license   BSD 2-Clause
8
 */
9
10
namespace MtMail;
11
12
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
13
use Zend\ModuleManager\Feature\ConfigProviderInterface;
14
15
class Module implements
16
    AutoloaderProviderInterface,
17
    ConfigProviderInterface
18
{
19
    /**
20
     * {@inheritDoc}
21
     */
22
    public function getAutoloaderConfig()
23
    {
24
        return [
25
            'Zend\Loader\StandardAutoloader' => [
26
                'namespaces' => [
27
                    __NAMESPACE__ => __DIR__,
28
                ],
29
            ],
30
        ];
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     */
36 1
    public function getConfig()
37
    {
38 1
        return include __DIR__ . '/../config/module.config.php';
39
    }
40
}
41