Module::getAutoloaderConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace T4web\Mail;
4
5
use Zend\ModuleManager\Feature\ConfigProviderInterface;
6
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
7
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;
8
use Zend\Console\Adapter\AdapterInterface;
9
10
class Module implements ConfigProviderInterface, AutoloaderProviderInterface, ConsoleUsageProviderInterface
11
{
12
    public function getConfig()
13
    {
14
        return include dirname(__DIR__) . '/config/module.config.php';
15
    }
16
17
    public function getAutoloaderConfig()
18
    {
19
        return [
20
            'Zend\Loader\StandardAutoloader' => [
21
                'namespaces' => [
22
                    __NAMESPACE__ => dirname(__DIR__) . '/src',
23
                ],
24
            ],
25
        ];
26
    }
27
28
    public function getConsoleUsage(AdapterInterface $console)
29
    {
30
        return [
31
            'Initialize migrations',
32
            'mail init' => 'Check config, create tables `mail_log` and `mail_templates`',
33
        ];
34
    }
35
}
36