Completed
Push — master ( 1de55c...289b21 )
by Iurii
01:22
created

Main::hookRouteList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
3
/**
4
 * @package Reset
5
 * @author Iurii Makukh <[email protected]>
6
 * @copyright Copyright (c) 2017, Iurii Makukh <[email protected]>
7
 * @license https://www.gnu.org/licenses/gpl-3.0.en.html GPL-3.0+
8
 */
9
10
namespace gplcart\modules\reset;
11
12
/**
13
 * Main class for Reset module
14
 */
15
class Main
16
{
17
18
    /**
19
     * Implements hook "route.list"
20
     * @param array $routes
21
     */
22
    public function hookRouteList(array &$routes)
23
    {
24
        $routes['admin/tool/reset'] = array(
25
            'access' => '__superadmin',
26
            'menu' => array('admin' => 'Reset'),
27
            'handlers' => array(
28
                'controller' => array('gplcart\\modules\\reset\\controllers\\Reset', 'editReset')
29
            )
30
        );
31
    }
32
33
}
34