Bootstrap::bootstrap()   A
last analyzed

Complexity

Conditions 3
Paths 3

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 3
nc 3
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace yii2mod\scheduling;
4
5
use yii\base\BootstrapInterface;
6
use yii\console\Application;
7
8
/**
9
 * Class Bootstrap
10
 *
11
 * @package yii2mod\scheduling
12
 */
13
class Bootstrap implements BootstrapInterface
14
{
15
    /**
16
     * @inheritdoc
17
     */
18
    public function bootstrap($app)
19
    {
20
        if ($app instanceof Application) {
21
            if (!isset($app->controllerMap['schedule'])) {
22
                $app->controllerMap['schedule'] = 'yii2mod\scheduling\ScheduleController';
23
            }
24
        }
25
    }
26
}
27