Completed
Push — master ( 9bb285...104bd6 )
by Alexander
03:14
created

Module::registerServices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
rs 9.4285
1
<?php
2
3
namespace Api;
4
5
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("Api\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
    }
20
21
}