Module::registerAutoloaders()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Cms;
4
5 View Code Duplication
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace("Cms\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}