Passed
Push — develop ( 73b673...d6f831 )
by Nikolay
05:32
created

Module   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 2
dl 0
loc 19
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerServices() 0 2 1
A registerAutoloaders() 0 1 1
1
<?php
2
/*
3
 * MikoPBX - free phone system for small business
4
 * Copyright (C) 2017-2023 Alexey Portnov and Nikolay Beketov
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with this program.
17
 * If not, see <https://www.gnu.org/licenses/>.
18
 */
19
20
21
namespace MikoPBX\AdminCabinet;
22
23
use MikoPBX\AdminCabinet\Config\RegisterDIServices;
24
use Phalcon\Di\DiInterface;
25
use Phalcon\Mvc\ModuleDefinitionInterface;
26
27
class Module implements ModuleDefinitionInterface
28
{
29
30
    /**
31
     * Registers an autoloader related to the module
32
     *
33
     * @param \Phalcon\Di\DiInterface $container
34
     */
35
    public function registerAutoloaders(DiInterface $container = null){
36
37
    }
38
39
    /**
40
     * Registers services related to the module
41
     *
42
     * @param \Phalcon\Di\DiInterface $container
43
     */
44
    public function registerServices(DiInterface $container){
45
        RegisterDIServices::init($container);
46
    }
47
48
}