Module::getConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Application;
4
5
use Laminas\Mvc\MvcEvent;
6
7
class Module
8
{
9
    const VERSION = '3.0.3-dev';
10
11
    public function getConfig()
12
    {
13
        return include __DIR__ . '/../config/module.config.php';
14
    }
15
16
    public function onBootstrap(MvcEvent $event)
17
    {
18
        $serviceManager = $event->getApplication()->getServiceManager();
19
        $viewModel = $event->getApplication()->getMvcEvent()->getViewModel();
20
21
        $config = $serviceManager->get('configuration');
22
        $config = $config['idlerpg'];
23
24
        $viewModel->title = $config['bot_channel'] . '[at]' . $config['network_host'];
25
    }
26
}
27