Bootstrap::bootstrap()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 1

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 8
ccs 0
cts 8
cp 0
rs 9.4285
cc 1
eloc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace cornernote\gii;
4
5
use yii\base\Application;
6
use yii\base\BootstrapInterface;
7
8
9
/**
10
 * Class Bootstrap
11
 */
12
class Bootstrap implements BootstrapInterface
13
{
14
15
    /**
16
     * Bootstrap method to be called during application bootstrap stage.
17
     *
18
     * @param Application $app the application currently running
19
     */
20
    public function bootstrap($app)
21
    {
22
        //if ($app->hasModule('gii')) {
23
        //    if ($app instanceof \yii\console\Application) {
24
        //        $app->controllerMap['gii-batch'] = 'cornernote\gii\commands\BatchController';
25
        //    }
26
        //}
27
    }
28
}
29