AppController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 7 1
1
<?php
2
/**
3
 * Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
4
 *
5
 * Licensed under The MIT License
6
 * Redistributions of files must retain the above copyright notice.
7
 *
8
 * @copyright Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
9
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10
 */
11
12
namespace CakeDC\Api\Test\App\Controller;
13
14
require ROOT . DS . 'tests' . DS . 'Config' . DS . 'bootstrap.php';
15
16
use Cake\Controller\Controller;
17
18
/**
19
 * This is a placeholder class.
20
 * Create the same file in app/Controller/AppController.php
21
 *
22
 * Add your application-wide methods in the class below, your controllers
23
 * will inherit them.
24
 *
25
 */
26
class AppController extends Controller
27
{
28
29
    public function initialize()
30
    {
31
        parent::initialize();
32
        $this->loadComponent('Flash');
33
        $this->loadComponent('CakeDC/Users.UsersAuth');
34
        $this->loadComponent('RequestHandler');
35
    }
36
}
37