Completed
Push — master ( 2289fe...fc9f33 )
by Scott
02:28
created

Customers::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 7
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php namespace Bedard\Shop\Controllers;
2
3
use BackendMenu;
4
use Bedard\Shop\Classes\BackendController;
5
6
/**
7
 * Customers Back-end Controller.
8
 */
9 View Code Duplication
class Customers extends BackendController
10
{
11
    public $formConfig = 'config_form.yaml';
12
13
    public $listConfig = 'config_list.yaml';
14
15
    public $implement = [
16
        'Backend.Behaviors.FormController',
17
        'Backend.Behaviors.ListController',
18
        'Owl.Behaviors.ListDelete.Behavior',
19
    ];
20
21
    public $registerPermissions = [
22
        'bedard.shop.customers.manage',
23
    ];
24
25
    public function __construct()
26
    {
27
        parent::__construct();
28
29
        BackendMenu::setContext('Bedard.Shop', 'shop', 'customers');
30
        $this->addJs('/plugins/bedard/shop/assets/dist/customers.js');
31
    }
32
}
33