Completed
Push — master ( 7cf2a7...686a12 )
by Matthias
09:06
created

Module::getControllerConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * @author Matthias Glaub <[email protected]>
5
 * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
6
 */
7
8
namespace MaglLegacyApplication;
9
10
use MaglLegacyApplication\Application\MaglLegacy;
11
use Psr\Container\ContainerInterface;
12
use Zend\Mvc\MvcEvent;
13
use Zend\Router\RouteMatch;
14
use Zend\ServiceManager\ServiceManager;
15
16
class Module
17
{
18 6
    public function onBootstrap(MvcEvent $event)
19
    {
20 6
        MaglLegacy::getInstance()->setApplication($event->getApplication());
21 6
    }
22
23 7
    public function getConfig()
24
    {
25 7
        return include realpath(__DIR__ . '/../../config/module.config.php');
26
    }
27
28
    public function getAutoloaderConfig()
29
    {
30
        return array(
31
            'Zend\Loader\StandardAutoloader' => array(
32 7
                'namespaces' => array(
33
                    __NAMESPACE__ => __DIR__,
34 7
                ),
35
            ),
36 7
        );
37
    }
38
}
39