Yii
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 0
eloc 1
dl 0
loc 2
c 0
b 0
f 0
ccs 0
cts 0
cp 0
1
<?php
2
/**
3
 * @link http://www.newicon.net/neon
4
 * @copyright Copyright (c) 2017 Newicon Ltd
5
 * @license http://www.newicon.net/neon/license/
6
 * @author Steve O'Brien <[email protected]> 12/07/2018
7
 * @package neon
8
 */
9
// set globals before Yii does!
10
defined('YII_ENV') or define('YII_ENV', env('NEON_ENV', 'dev'));
11
defined('YII_DEBUG') or define('YII_DEBUG', env('NEON_DEBUG', true));
12
// define a start variable used when determining execution time @see neon()->getExecutionTime()
13
defined('NEON_START') or define('NEON_START', microtime(true));
14
15
require __DIR__.'/Neon.php';
16
17
/**
18
 * Override the default Yii class
19
 * This allows us to override and extend Yii static functions in Neon
20
 */
21
class Yii extends Neon
22
{
23
}
24
25
spl_autoload_register(['Yii', 'autoload'], true, true);
26
// Ability to replace any yii core class with an alternative
27
Yii::$classMap = require YII2_PATH . '/classes.php';
28
Yii::$container = new yii\di\Container();
29