Completed
Push — master ( 6fa227...389cdb )
by Scott
02:24
created

Promotions::__construct()   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
c 1
b 0
f 0
dl 0
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
 * Promotions Back-end Controller
8
 */
9
class Promotions extends BackendController
10
{
11
    public $implement = [
12
        'Backend.Behaviors.FormController',
13
        'Backend.Behaviors.ListController'
14
    ];
15
16
    public $formConfig = 'config_form.yaml';
17
18
    public $listConfig = 'config_list.yaml';
19
20
    public $registerPermissions = [
21
        'bedard.shop.promotions.manage',
22
    ];
23
24
    public function __construct()
25
    {
26
        parent::__construct();
27
28
        BackendMenu::setContext('Bedard.Shop', 'shop', 'promotions');
29
        $this->addJs('/plugins/bedard/shop/assets/dist/promotions.js');
30
    }
31
}
32