Completed
Push — master ( 0dbe46...28a804 )
by ARCANEDEV
03:27
created

SettingsController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Foundation\Http\Controllers;
2
3
use Arcanesoft\Core\Bases\FoundationController;
4
use Arcanesoft\Core\Traits\Notifyable;
5
6
/**
7
 * Class     SettingsController
8
 *
9
 * @package  Arcanesoft\Foundation\Http\Controllers
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class SettingsController extends FoundationController
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Traits
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    use Notifyable;
19
20
    /* ------------------------------------------------------------------------------------------------
21
     |  Constructor
22
     | ------------------------------------------------------------------------------------------------
23
     */
24
    /**
25
     * SettingsController constructor.
26
     */
27
    public function __construct()
28
    {
29
        parent::__construct();
30
31
        $this->setCurrentPage('foundation-settings');
32
        $this->addBreadcrumbRoute('Settings', 'foundation::settings.index');
33
    }
34
35
    /* ------------------------------------------------------------------------------------------------
36
     |  Main Functions
37
     | ------------------------------------------------------------------------------------------------
38
     */
39
    public function index()
40
    {
41
        $title = 'Generals';
42
        $this->setTitle('Settings - ' . $title);
43
        $this->addBreadcrumb($title);
44
        $this->setCurrentPage('foundation-settings-generals');
45
46
        return $this->view('settings.index');
47
    }
48
}
49