GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Module::onBootstrap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
/**
3
 * @link https://github.com/old-town/workflow-zf2
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2;
7
8
9
10
use Zend\Mvc\ModuleRouteListener;
11
use Zend\Mvc\MvcEvent;
12
use Zend\EventManager\EventInterface;
13
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
14
use Zend\ModuleManager\Feature\ConfigProviderInterface;
15
use Zend\ModuleManager\Feature\BootstrapListenerInterface;
16
17
18
19
/**
20
 * Class Module
21
 *
22
 * @package OldTown\Workflow\ZF2
23
 */
24
class Module implements
25
    BootstrapListenerInterface,
26
    ConfigProviderInterface,
27
    AutoloaderProviderInterface
28
{
29
30
    /**
31
     * Имя секции в конфиги приложения
32
     *
33
     * @var string
34
     */
35
    const CONFIG_KEY = 'workflow_zf2';
36
37
    /**
38
     * @param EventInterface $e
39
     *
40
     * @return array|void
41
     */
42
    public function onBootstrap(EventInterface $e)
43
    {
44
        /** @var MvcEvent $e */
45
        $eventManager        = $e->getApplication()->getEventManager();
46
        $moduleRouteListener = new ModuleRouteListener();
47
        $moduleRouteListener->attach($eventManager);
48
49
    }
50
51
52
    /**
53
     * @return mixed
54
     */
55
    public function getConfig()
56
    {
57
        return include __DIR__ . '/config/module.config.php';
58
    }
59
60
    /**
61
     * @return array
62
     */
63
    public function getAutoloaderConfig()
64
    {
65
        return array(
66
            'Zend\Loader\StandardAutoloader' => array(
67
                'namespaces' => array(
68
                    __NAMESPACE__ => __DIR__ . '/src/',
69
                ),
70
            ),
71
        );
72
    }
73
74
75
76
77
78
}